Skip to content

Commit 5aa61a0

Browse files
committed
refactor: GH action
1 parent dd6d7fc commit 5aa61a0

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/deno-ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
1-
# This workflow will test on Deno latest stable major and canary
2-
# see https://github.com/marketplace/actions/setup-deno for details
31
name: Deno CI
42
on: [push, pull_request]
53
jobs:
64
test:
7-
runs-on: ubuntu-latest
5+
runs-on: ${{ matrix.os }}
86
strategy:
97
matrix:
10-
deno-version:
11-
- vx.x.x
12-
- canary
8+
deno: [canary]
9+
os: [macos-latest, ubuntu-latest, windows-2019]
1310
steps:
1411
- name: Clone repository
1512
uses: actions/checkout@v2
16-
- name: Set up Deno ${{ matrix.deno-version }}
13+
- name: Set up Deno ${{ matrix.deno }}
1714
uses: denoland/[email protected]
1815
with:
19-
deno-version: ${{ matrix.deno }}
16+
deno: ${{ matrix.deno }}
2017
- name: Run tests
2118
run: deno test --allow-net --coverage=coverage/tmp --ignore=node_modules
2219
- name: Generate coverage
2320
run: deno coverage coverage/tmp --lcov > coverage/lcov.info; sed -i.bak -E 's/SF:.*\/([^/]+\.ts)/SF:\1/' coverage/lcov.info; rm -f coverage/lcov.info.bak
2421
- name: Upload coverage
2522
uses: codecov/codecov-action@v2
26-
if: matrix.deno-version == 1
23+
if: matrix.os == 'ubuntu-latest' && matrix.deno == 'canary'
2724
with:
2825
fail_ci_if_error: true
2926
files: lcov.info

0 commit comments

Comments
 (0)