-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (70 loc) · 1.72 KB
/
tests.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
66
67
68
69
70
71
72
73
74
75
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- ready_for_review
env:
DENO_VERSION: 1.38.2
jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: actions/checkout@v4
test-pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- uses: pre-commit/[email protected]
test-e2e:
runs-on: "${{ matrix.os }}"
# runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: ubuntu-latest
e2eType: "docker"
- os: macos-latest
e2eType: "local"
# - os: windows-latest
# e2eType: "local"
env:
GHJK_TEST_E2E_TYPE: ${{ matrix.e2eType }}
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- if: "${{ matrix.os == 'macos-latest' }}"
run: brew install fish zsh
- if: "${{ matrix.e2eType == 'docker' }}"
uses: docker/setup-buildx-action@v3
- if: "${{ matrix.e2eType == 'docker' }}"
uses: actions-hub/docker/cli@master
env:
SKIP_LOGIN: true
- run: deno task test
test-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- uses: ./
id: ghjk-action
env:
GHJK_CONFIG: ./examples/protoc/ghjk.ts
- shell: bash
run: |
cd examples/protoc
. $BASH_ENV
protoc --version