-
Notifications
You must be signed in to change notification settings - Fork 509
44 lines (36 loc) · 1.15 KB
/
pr-kumascript.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
37
38
39
40
41
42
43
44
# This workflow exclusively and specifically only checks the
# kumascript test suite.
# But if a package gets upgraded (e.g. Dependabot making a PR)
# that should test the kumascript suite too because the packages
# might have (and we've seen it happen!) an impact on the suite.
# Note that lint checking and stuff for files with `kumascript/**`
# is done with the general testing workflow.
name: Kumascript unit testing
on:
pull_request:
paths:
- kumascript/**
- .github/workflows/pr-kumascript.yml
- jest.config.json
- package.json
- yarn.lock
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- name: Install all yarn packages
run: yarn --frozen-lockfile
env:
# https://github.com/microsoft/vscode-ripgrep#github-api-limit-note
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Unit testing kumascript
env:
CONTENT_ROOT: testing/content/files
run: |
yarn test:kumascript