chore(deps): update typescript-eslint monorepo to v8 #1330
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build, test and deploy examples | |
on: [push] | |
jobs: | |
build: | |
name: Build on node ${{ matrix.node_version }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [10] | |
steps: | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "10.x" | |
- uses: actions/checkout@v1 | |
- name: Cache node modules | |
id: cache-modules | |
uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.OS }}-build-${{ env.cache-name }}- | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- name: Install | |
if: steps.cache-modules.outputs.cache-hit != 'true' | |
run: yarn install | |
- name: Bootstrap | |
run: yarn bootstrap | |
- name: Build examples | |
run: yarn build:examples | |
- name: Test examples | |
run: yarn test:examples --maxWorkers=2 | |
- name: Deploy examples | |
if: github.ref == 'master' | |
run: yarn deploy:examples |