Skip to content

Commit

Permalink
Fixing github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ko committed Aug 3, 2023
1 parent d658c9e commit d8057c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,38 +1,14 @@
name: CI/CD Pipeline
name: Build and deploy application

on:
push:
branches:
- main

jobs:
tests_e2e:
name: "Playwright Tests"
runs-on: [rocky, balboa]
container:
image: mcr.microsoft.com/playwright:v1.36.2-jammy
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Run your tests
run: npx playwright test
- name: Upload test results
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

build:
name: Build and push Docker image
runs-on: [rocky, balboa]
needs: tests_e2e

steps:
- name: Checkout code
run: actions/checkout@v3
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
run: npm ci
- name: Run ESLint
run: npm run lint
- name: Clean the workspace
run: rm -rf $GITHUB_WORKSPACE/*

playwright:
name: "Playwright Tests"
Expand All @@ -42,3 +44,5 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Clean the workspace
run: rm -rf $GITHUB_WORKSPACE/*

0 comments on commit d8057c8

Please sign in to comment.