tab-stash/.github/workflows/ci.yml

47 lines
1.1 KiB
YAML

name: ci
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install Dependencies
run: sh ./install-deps.sh
- name: Install Node Modules
run: make node_modules
- name: Check Types
run: make check-types
- name: Check Style
run: make check-style
- name: Build
run: make build-dbg build-chrome-dbg
- name: Test
run: make check-tests
- name: Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage/lcov.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Make Firefox Package (Debug)
uses: actions/upload-artifact@v4
with:
name: firefox
path: dist/**/*
- name: Make Chrome Package (Debug)
uses: actions/upload-artifact@v4
with:
name: chrome
path: dist-chrome/**/*