|
|
@ -12,30 +12,13 @@ jobs:
|
|
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
|
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Cancel Previous Runs
|
|
|
|
- name: Cancel Previous Runs
|
|
|
|
uses: styfle/cancel-workflow-action@0.9.1
|
|
|
|
uses: styfle/cancel-workflow-action@0.10.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
|
|
|
|
name: Lint & Test Build
|
|
|
|
|
|
|
|
needs: jobs
|
|
|
|
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
container: node:16.16-alpine
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
HUSKY_SKIP_INSTALL: 1
|
|
|
|
|
|
|
|
run: yarn
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
|
|
|
|
run: yarn lint
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
|
|
|
|
run: yarn build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build-snap:
|
|
|
|
build-snap:
|
|
|
|
name: Build Snap Package (${{ matrix.architecture }})
|
|
|
|
name: Build Snap Package (${{ matrix.architecture }})
|
|
|
|
needs: test
|
|
|
|
needs: jobs
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
fail-fast: false
|
|
|
|