Update dependencies and migrate to Manifest V3 #11
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: Continuous Integration | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build using Node ${{ matrix.node-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 20 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Build with Node | |
run: npm run build:prod | |
test: | |
name: Test using Node ${{ matrix.node-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 20 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up environment | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint with ESLint | |
run: npm run lint:scripts | |
- name: Lint with StyleLint | |
run: npm run lint:styles | |
- name: Test with Node | |
run: npm run test:unit -- --coverage | |
- name: Upload coverage to CodeCov | |
uses: codecov/codecov-action@v1 |