2 changed files with 29 additions and 26 deletions
@ -0,0 +1,28 @@ |
|||||||
|
on: push |
||||||
|
name: Build & Lint |
||||||
|
jobs: |
||||||
|
build: |
||||||
|
runs-on: ubuntu-latest |
||||||
|
strategy: |
||||||
|
matrix: |
||||||
|
node: [ '14' ] |
||||||
|
name: Node ${{ matrix.node }} |
||||||
|
|
||||||
|
steps: |
||||||
|
- uses: actions/checkout@v1 |
||||||
|
- name: Setup node |
||||||
|
uses: actions/setup-node@v2 |
||||||
|
with: |
||||||
|
node-version: ${{ matrix.node }} |
||||||
|
- name: Cache Node modules |
||||||
|
uses: actions/cache@v2 |
||||||
|
with: |
||||||
|
path: node_modules |
||||||
|
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} |
||||||
|
- name: Install Node dependencies & build assets |
||||||
|
run: | |
||||||
|
node -v |
||||||
|
npm install |
||||||
|
npm run build |
||||||
|
- name: Run ESLint and Stylelint |
||||||
|
run: npm run lint |
||||||
Loading…
Reference in new issue