Skip to content

Commit

Permalink
moved setup to another workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
raultifrea committed Jan 9, 2024
1 parent 7e7ea3d commit c029adf
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/allTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ jobs:
steps:
# Include reusable steps from above
- name: 'Run reusable steps'
run: |
$(jobs.reusable-steps.steps)
uses: ./.github/workflows/setup.yml

- name: Run Tests
uses: cypress-io/github-action@v6
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run Setup
on: workflow_call
jobs:
reusable-steps:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.14.2

- name: Update & Install Ubuntu packages
run: |
env
sudo apt-get update && sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- name: Update & Install NPM packages
run: |
npx browserslist@latest --update-db
npm ci
- name: Clear Report
run: |
echo "Clear the report"
npm run delete-mochawesome-report
npm run delete-results

0 comments on commit c029adf

Please sign in to comment.