-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (66 loc) · 2.03 KB
/
nightly.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
on:
schedule:
- cron: "0 2 * * *"
workflow_dispatch:
env:
DENO_VERSION: "1.44.2"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GHJK_LOG_PANIC_LEVEL: error
DENO_DIR: .deno-dir
DOCKER_NO_RMI: 1
jobs:
test-e2e:
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
e2eType: "local"
- os: macos-latest
e2eType: "local"
- os: macos-14
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 == 'ubuntu-latest' || matrix.os == 'custom-arm' }}"
run: |
# we need coreutils on max for the `timeout` command
sudo apt update
sudo apt install -y --no-install-recommends fish zsh
- if: "${{ matrix.os == 'macos-latest' || matrix.os == 'macos-14' }}"
# we need coreutils on max for the `timeout` command
run: brew install fish zsh coreutils
- name: Cache deno dir
if: "${{ matrix.os == 'macos-latest' || matrix.os == 'macos-14' }}"
uses: actions/cache@v4
with:
path: ${{ env.DENO_DIR }}
key: deno-mac-${{ hashFiles('**/deno.lock') }}
- 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: metatypedev/setup-ghjk@318209a9d215f70716a4ac89dbeb9653a2deb8bc
with:
installer-url: ./install.ts
env:
GHJKFILE: ./examples/protoc/ghjk.ts
- run: |
cd examples/tasks
. $(ghjk print share-dir-path)/env.sh
ghjk x hey