Skip to content

Commit

Permalink
Update Build Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ckabalan committed Oct 15, 2024
1 parent e5dba60 commit ec8cfcb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: docker
name: Docker Build

on:
push:
Expand All @@ -9,30 +9,24 @@ on:
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
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/ui-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: UI Testing (Playwright)
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30

0 comments on commit ec8cfcb

Please sign in to comment.