-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 977 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install modules
run: npm install
- name: Run unit tests
run: npm run test:unit
- name: Build project for integration tests
run: npm run test:build
- name: Run static server
run: npm run test:server
- name: Run integration tests
id: integrationTests
continue-on-error: true
run: npm run test:integration
- name: Upload screenshots to argos-ci.com
if: steps.integrationTests.outcome == 'failure'
env:
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
run: npm exec argos upload /home/runner/work/webgl/webgl/tests/integration/map/__image_snapshots__/
- name: Fail job when integration tests failed
uses: actions/github-script@v3
if: steps.integrationTests.outcome == 'failure'
with:
script: |
core.setFailed('Integration tests failed.')