-
Notifications
You must be signed in to change notification settings - Fork 28
43 lines (43 loc) · 1.2 KB
/
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
37
38
39
40
41
42
43
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
tags:
- '*'
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v3
with:
submodules: true
- run: (cd packages/shim-deno/third_party/deno; git submodule update --init --depth=1 test_util/std)
shell: bash
- uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- uses: denoland/setup-deno@v1
with:
deno-version: 1.38.1
- run: deno lint
if: matrix.os == 'ubuntu-latest'
- run: deno fmt --check
if: matrix.os == 'ubuntu-latest'
- run: npm -v
- run: npm ci --ignore-scripts
- run: npm run --silent build --workspaces
- run: npm run --silent test --workspaces
- name: Try running on Node 14
run: cd packages/shim-deno && npx node@14 dist/index.js
if: matrix.os == 'ubuntu-latest'
- run: cd packages/shim-deno && tools/untested.sh
if: matrix.os == 'ubuntu-latest'