-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 953 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on:
workflow_dispatch:
pull_request:
jobs:
build:
name: Build
runs-on: [ubuntu-latest]
steps:
- uses: open-turo/actions-node/build@v6
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Download actionlint
run: |
mkdir -p "$HOME/bin"
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) latest "$HOME/bin"
echo "${HOME}/bin" >> "$GITHUB_PATH"
- uses: open-turo/actions-node/lint@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
npm-token: ${{ secrets.OPEN_TURO_NPM_TOKEN }}
test:
name: Test
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: open-turo/actions-node/test@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
test-flags: --coverage
- name: Upload coverage
uses: coverallsapp/github-action@v2