UNPKG

620 BYAMLView Raw
1# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
4name: CI
5
6on:
7 push:
8 branches: [main]
9 pull_request:
10 branches: [main]
11
12jobs:
13 build:
14 runs-on: ubuntu-latest
15
16 steps:
17 - uses: actions/checkout@v3
18 - name: Use Node.js
19 uses: actions/setup-node@v3
20 with:
21 node-version: 16
22 - run: npm ci
23 - run: script/build
24 - run: npm exec -- prettier --check src