Skip to content

Merge pull request #571 from 515hikaru/dependabot/npm_and_yarn/webpac… #1142

Merge pull request #571 from 515hikaru/dependabot/npm_and_yarn/webpac…

Merge pull request #571 from 515hikaru/dependabot/npm_and_yarn/webpac… #1142

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Linting
run: npm run lint
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: TypeCheck
run: npm run typecheck
test:
needs: [lint, typecheck]
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
node-version: [16.x, 18.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Testing
run: |
npm run generate
npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/lcov.info
flags: unittests
name: pnove-test
build:
needs: [lint, typecheck]
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
node-version: [16.x, 18.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Building
run: |
npm run generate
npm run build