Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ci workflow updates #16

Merged
merged 4 commits into from
Feb 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 8 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
name: ci

on:
push:
branches:
- main
- master
workflow_dispatch:
pull_request:
branches:
- main
- master
branches: [ develop, main ]

jobs:
ci:
Expand All @@ -17,29 +12,21 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
node: [16]

steps:
- name: Checkout 🛎
uses: actions/checkout@master
uses: actions/checkout@v2

- name: Setup node env 🏗
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
check-latest: true

- name: Cache node_modules 📦
uses: actions/cache@v2.1.4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install dependencies 👨🏻‍💻
run: npm ci --prefer-offline --no-audit

- name: Run linter 👀
run: npm run lint

- name: Build the site 🔨
run: npm run build