Skip to content

Build & Test

Build & Test #327

Workflow file for this run

name: Build & Test
on:
push:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
schedule:
- cron: '0 0 * * 0'
jobs:
test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install Dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm run test:coverage
- name: Post Code Coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}