-
Notifications
You must be signed in to change notification settings - Fork 9
65 lines (62 loc) · 1.85 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Deno CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: [1.x, 2.x]
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
- name: Run deno test
run: |
deno fmt --check
deno task test
deno task cov > coverage.lcov
- uses: codecov/codecov-action@v2
if: matrix.deno-version == '2.x'
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.lcov
flags: unittests
- name: Run deno publish (dry)
run: npx jsr publish --dry-run --allow-dirty
# - name: Run deno test for /core
# working-directory: ./core
# run: |
# deno fmt --check
# deno task test
# - name: Run deno test for /packages/dhkem-x25519
# working-directory: ./packages/dhkem-x25519
# run: |
# deno fmt --check
# deno task test
# - name: Run deno test for /packages/dhkem-x448
# working-directory: ./packages/dhkem-x448
# run: |
# deno fmt --check
# deno task test
# - name: Run deno test for /packages/chacha20poly1305
# working-directory: ./packages/chacha20poly1305
# run: |
# deno fmt --check
# deno task test
# - name: Run deno test for /packages/hybridkem-x25519-kyber768
# working-directory: ./packages/hybridkem-x25519-kyber768
# run: |
# deno fmt --check
# deno task test
# - name: Run deno test for /packages/dhkem-secp256k1
# working-directory: ./packages/dhkem-secp256k1
# run: |
# deno fmt --check
# deno task test