generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
166 lines (161 loc) · 4.2 KB
/
test.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
name: 'build-test'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- 'releases/*'
permissions:
contents: read
env:
PNPM_VERSION: latest
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
- name: Get pnpm store directory
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_ENV"
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- run: |
pnpm run all
test:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: macos-13
- os: macos-latest
- os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./
- run: cargo prebuilt just
- run: just --version
test-version: # make sure that the right version can be downloaded
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
- run: '[[ "$(cargo prebuilt --version)" != "" ]]'
- uses: ./
with:
prebuilt-version: 0.6.0
- run: '[[ "$(cargo prebuilt --version)" == "Version: 0.6.0" ]]'
test-linux-tools:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
pkgs: just,rtx-cli@1.34.0,bacon@2.11.0
- run: just --version
- run: which just
- run: rtx --version
- run: '[[ "$(bacon --version)" == "bacon 2.11.0" ]]'
test-macos-tools:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: ./
with:
pkgs: just,rtx-cli@1.34.0,bacon@2.11.0
- run: just --version
- run: which just
- run: rtx --version
- run: '[[ "$(bacon --version)" == "bacon 2.11.0" ]]'
test-macos-latest-tools:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
pkgs: just,rtx-cli@1.34.0,bacon@2.11.0
- run: just --version
- run: which just
- run: rtx --version
- run: '[[ "$(bacon --version)" == "bacon 2.11.0" ]]'
test-windows-tools:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
pkgs: just,bacon@2.11.0
- shell: bash
run: just --version
- run: where.exe just
- shell: bash
run: '[[ "$(bacon --version)" == "bacon 2.11.0" ]]'
test-dup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
pkgs: just@1.14.0
- run: '[[ "$(just --version)" == "just 1.14.0" ]]'
- uses: ./
with:
out: false
pkgs: just@1.14.0
- run: '[[ "$(just --version)" == "just 1.14.0" ]]'
- run: which just
test-minisign:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: macos-13
- os: macos-latest
- os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
prebuilt-verify: minisign
pkgs: just@1.14.0
test-target:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
pkgs: just,rtx-cli@1.34.0,bacon@2.11.0
target: aarch64-unknown-linux-musl
- run: which just
test-next:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: macos-13
- os: macos-latest
- os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./
with:
prebuilt-version: 0.7.0-rc.0
prebuilt-verify: minisign
pkgs: just,bat,cargo-asm,zoxide