-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (33 loc) · 855 Bytes
/
ci.yml
File metadata and controls
37 lines (33 loc) · 855 Bytes
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
name: CI
# Declare default permissions as read only.
permissions: read-all
on:
push:
branches:
- main
pull_request:
branches:
- '**'
concurrency:
group: ci-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
ci:
name: '[Required] Run tests'
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 2
- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
cache: npm
node-version-file: '.nvmrc'
- name: Install cddlconv
run: cargo install cddlconv@0.1.7
- name: Install dependencies
run: npm ci
- name: Build and test
run: npm test