Skip to content

Commit

Permalink
pipeline fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PauliusKu committed Jan 23, 2025
1 parent 4825edd commit da555cb
Showing 1 changed file with 49 additions and 31 deletions.
80 changes: 49 additions & 31 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,54 @@
name: Node.js CI

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
push:
branches: ["develop"]
pull_request:
branches: ["develop"]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- run: npm install
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'

- run: xvfb-run -a npm run get-ade-test
if: runner.os == 'Linux'
- run: npm run get-ade-test
if: runner.os != 'Linux'

- run: xvfb-run -a npm run stability-test
if: runner.os == 'Linux'
- run: npm run stability-test
if: runner.os != 'Linux'
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x

- run: npm install

- name: Run Tests
run: xvfb-run -a npm test
if: runner.os == 'Linux'

- name: Run Tests (Non-Linux)
run: npm test
if: runner.os != 'Linux'

stability-test:
needs: test # Runs only if 'test' job is successful
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x

- run: npm install

- name: Get ADE Repo
run: xvfb-run -a npm run get-ade-test
if: runner.os == 'Linux'

- name: Run Stability Test
run: xvfb-run -a npm run stability-test
if: runner.os == 'Linux'

0 comments on commit da555cb

Please sign in to comment.