2023-10-22 04:18:43 +00:00
|
|
|
name: Node.js CI
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ['main']
|
|
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: 'Fmt, Lint, & Build'
|
2023-10-22 05:21:50 +00:00
|
|
|
env:
|
|
|
|
PUBLIC_API_ENDPOINT: ''
|
2023-10-22 04:18:43 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version:
|
|
|
|
- latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- run: node --version
|
|
|
|
- run: npm clean-install
|
|
|
|
- run: npm run fmt
|
|
|
|
#- run: npm run lint
|
|
|
|
#- run: npm run lint:types
|
|
|
|
- run: npm run build
|