2021-07-23 12:42:50 +00:00
|
|
|
name: Docker Build
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-12-09 05:09:35 +00:00
|
|
|
node-version: [16.x]
|
2021-07-23 12:42:50 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- run: yarn
|
2021-10-27 09:13:48 +00:00
|
|
|
# https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#use-private-packages
|
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-07-23 12:42:50 +00:00
|
|
|
- name: Linter check
|
|
|
|
run: yarn lint
|
|
|
|
build:
|
|
|
|
name: Run docker build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: test
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Run docker build
|
|
|
|
run: make docker-build
|