Nuxt/.github/workflows/ci.yml

54 lines
970 B
YAML
Raw Normal View History

2021-03-18 14:26:41 +00:00
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
2021-03-18 14:26:41 +00:00
with:
node-version: ${{ matrix.node }}
- name: checkout
uses: actions/checkout@master
- uses: actions/cache@v2
id: yarn-cache
with:
2021-04-04 14:22:40 +00:00
path: .yarn/cache
2021-03-18 14:26:41 +00:00
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
2021-04-09 15:58:43 +00:00
${{ runner.os }}-yarn-
2021-03-18 14:26:41 +00:00
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
2021-04-09 15:58:43 +00:00
run: yarn --immutable
2021-04-09 13:48:39 +00:00
- name: Stub
run: yarn stub
2021-03-18 14:26:41 +00:00
- name: Lint
run: yarn lint
- name: Build
run: yarn build
# - name: Test
# run: yarn jest
# - name: Coverage
# uses: codecov/codecov-action@v1