mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 18:17:38 +00:00
Use GitHub Actions only
This retires Travis, and starts upload screenshot diffs when integration tests fail.
This commit is contained in:
parent
6dce525272
commit
a1df4bfc73
8 changed files with 51 additions and 23 deletions
5
.github/workflows/ia-integration-tests.yml
vendored
5
.github/workflows/ia-integration-tests.yml
vendored
|
|
@ -21,3 +21,8 @@ jobs:
|
|||
node ./index.js
|
||||
env:
|
||||
CI: true
|
||||
- uses: actions/upload-artifact@v1
|
||||
if: failure()
|
||||
with:
|
||||
name: error
|
||||
path: experiments/archive-org-integration-tests/error.png
|
||||
|
|
|
|||
36
.github/workflows/nodejs.yml
vendored
36
.github/workflows/nodejs.yml
vendored
|
|
@ -3,12 +3,12 @@ name: CI
|
|||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x, 12.x]
|
||||
node-version: [10.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
|
@ -16,9 +16,35 @@ jobs:
|
|||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: Run Tests
|
||||
- name: Install Dependencies
|
||||
run: yarn
|
||||
- name: Lint
|
||||
run: |
|
||||
yarn
|
||||
yarn travis-tests
|
||||
yarn lint
|
||||
yarn type-check
|
||||
- name: Build
|
||||
run: |
|
||||
yarn build
|
||||
yarn build-library
|
||||
- name: Run Unit Tests
|
||||
run: yarn test
|
||||
- name: Run Integration Tests
|
||||
run: yarn integration-tests
|
||||
env:
|
||||
CI: true
|
||||
- name: Upload Screenshot Diffs
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: image_diffs
|
||||
path: js/__tests__/__image_snapshots__/__diff_output__/
|
||||
- name: Generate New Screenshots
|
||||
if: failure()
|
||||
run: |
|
||||
yarn integration-tests -u
|
||||
- name: Upload New Screenshots
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: new_images
|
||||
path: js/__tests__/__image_snapshots__/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue