-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 984 Bytes
/
test.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
# Copyright 2025, Intel Corporation
# SPDX-License-Identifier: BSD
name: Test Grammar
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
# Check out the repository using a pinned commit SHA.
- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# Set up Node.js using a pinned commit SHA.
- name: Set up Node.js
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # 4.3.0
# Replace the above SHA with your chosen pinned commit.
with:
node-version: '18'
# Install the vscode-tmgrammar-test package.
- name: Install vscode-tmgrammar-test globally
run: npm install -g vscode-tmgrammar-test
# Run grammar tests from the tests folder.
- name: Run grammar tests
run: vscode-tmgrammar-test tests/*.ispc