Update Build Pipeline
This commit is contained in:
parent
8f8a873cd1
commit
09b765a101
2 changed files with 46 additions and 16 deletions
|
@ -1,38 +1,33 @@
|
|||
name: docker
|
||||
name: Docker Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'develop'
|
||||
- 'main'
|
||||
#push:
|
||||
# branches:
|
||||
# - 'develop'
|
||||
# - 'main'
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
DOCKERHUB_TAG: ${{ github.ref_name == 'main' && 'latest' || 'develop' }}
|
||||
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Set up QEMU
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
id: container_name
|
||||
- id: container_name
|
||||
uses: ASzc/change-string-case-action@v5
|
||||
with:
|
||||
string: ${{ github.repository_owner }}/${{ github.event.repository.name }}
|
||||
-
|
||||
name: Build and push
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
push: true
|
35
.github/workflows/ui-testing.yml
vendored
Normal file
35
.github/workflows/ui-testing.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
name: UI Testing (Playwright)
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
jobs:
|
||||
test:
|
||||
timeout-minutes: 30
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
- run: npm ci
|
||||
working-directory: ./src
|
||||
- run: npm run build --if-present
|
||||
working-directory: ./src
|
||||
- name: Install Playwright Browsers
|
||||
run: npx playwright install --with-deps
|
||||
working-directory: ./src
|
||||
- name: Run Playwright tests
|
||||
run: npm test
|
||||
working-directory: ./src
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: ${{ !cancelled() }}
|
||||
with:
|
||||
name: playwright-report
|
||||
path: playwright-report/
|
||||
retention-days: 30
|
Loading…
Reference in a new issue