Nuxt/.github/workflows/ci.yml
2021-04-09 15:48:39 +02:00

55 lines
979 B
YAML

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: checkout
uses: actions/checkout@master
- uses: actions/cache@v2
id: yarn-cache
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-berry-
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn # --immutable
- name: Stub
run: yarn stub
- name: Lint
run: yarn lint
- name: Build
run: yarn build
# - name: Test
# run: yarn jest
# - name: Coverage
# uses: codecov/codecov-action@v1