Skip to content

Commit

Permalink
ci: update github ci to use updated steps version
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasDiablo committed Sep 21, 2023
1 parent 2f07253 commit 4620c20
Showing 1 changed file with 48 additions and 29 deletions.
77 changes: 48 additions & 29 deletions .github/workflows/lodex-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,52 +7,71 @@ on:

jobs:
test-unit:
timeout-minutes: 10
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
# See https://github.com/nodejs/Release
node-version: [ 12.x ]

steps:
- name: Checkout
uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install LODEX
run: make install
- name: Run Tests Unit
run: make install

- name: Start Unit Tests
run: make test-unit
- run: make test-unit

test-api-e2e:
timeout-minutes: 10
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [ 12.x ]

steps:
- name: Checkout
uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Install LODEX
run: make install
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Start API E2E Tests
run: make test-api-e2e
- name: Run API E2E Tests
run: make install

- run: make test-api-e2e

test-e2e:
timeout-minutes: 30
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
node-version: [ 12.x ]

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install LODEX
run: make install
- uses: actions/checkout@v4

- name: Start E2E Tests
run: make test-e2e
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: make install

- name: Upload screenshots
uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots

- name: Run E2E Tests
run: make test-e2e

- name: Upload screenshots
uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots

0 comments on commit 4620c20

Please sign in to comment.