-
-
Notifications
You must be signed in to change notification settings - Fork 25
36 lines (33 loc) · 997 Bytes
/
ci.yml
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:
push:
branches:
- main
- 'v*.[0-9]'
pull_request:
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
coveralls.io:443
github.com:443
registry.yarnpkg.com:443
objects.githubusercontent.com:443
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
- run: yarn
- run: yarn test --coverage
- name: Coveralls
uses: coverallsapp/github-action@c203f016dd0ff7855ebef0ed852000c20c117148 # master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}