-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.21 KB
/
development.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Push/Pull Development
on:
push:
branches:
- '**' # matches every branch
- '!master' # excludes master
pull_request:
branches:
- '**' # matches every branch
- '!master' # excludes master
jobs:
lint-test-generate-build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
- name: Setup Node and Install Depedencies
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
- name: Lint and Test
run: |
yarn lint
yarn test
- name: Build Nuxt
run: yarn build
- name: Generate Nuxt
run: yarn generate
- name: Generate Github Pages
run: yarn generate:gh-pages
- name: Upload Coverage
uses: codecov/codecov-action@v2
with:
flags: unittests, dev, push, pull # optional