Upgrade Node and packages #126
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Read .nvmrc | |
id: nvm | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- name: Get the Yarn cache | |
id: yarn-cache | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v2 | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install packages | |
run: yarn install --frozen-lockfile | |
- name: Check formatting | |
run: yarn run format:check | |
- name: Lint the code | |
run: yarn run lint | |
- name: Build the code | |
run: yarn run build | |
- name: Lint the extension | |
run: yarn run web-ext lint | |
- name: Build the extension | |
run: yarn run web-ext build |