-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (59 loc) · 2.13 KB
/
Copy pathci.yml
File metadata and controls
61 lines (59 loc) · 2.13 KB
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
name: Template CI
on:
pull_request:
push:
branches: [main]
jobs:
check:
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Read Dex Web v2 baseline
id: dex-web-v2
shell: bash
run: echo "revision=$(cat DEX_WEB_V2_BASELINE)" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v4
with:
repository: superdurable/dex
ref: ${{ steps.dex-web-v2.outputs.revision }}
path: upstream-dex
- uses: actions/setup-go@v5
with:
go-version-file: upstream-dex/cli/go.mod
cache-dependency-path: |
go.sum
tools/openapi/go.sum
upstream-dex/cli/go.sum
- uses: actions/setup-node@v4
with:
node-version: 22.22.0
cache: npm
cache-dependency-path: |
web/package-lock.json
upstream-dex/web/package-lock.json
- name: Install Temporal CLI 1.8.1
run: |
curl --fail --silent --show-error --location \
https://github.com/temporalio/cli/releases/download/v1.8.1/temporal_cli_1.8.1_linux_amd64.tar.gz \
--output /tmp/temporal-cli.tar.gz
echo "b94417b9a8760b30217f4b881dabce4b16a76a38b5e99e2eca3ce358b8030f06 /tmp/temporal-cli.tar.gz" | sha256sum --check
mkdir -p "$HOME/.local/bin"
tar -xzf /tmp/temporal-cli.tar.gz -C "$HOME/.local/bin" temporal
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
"$HOME/.local/bin/temporal" --version
- name: Build pinned Dex Web v2 CLI
run: |
npm --prefix upstream-dex/web ci
npm --prefix upstream-dex/web run check
npm --prefix upstream-dex/web run build
mkdir -p "$HOME/.local/bin"
GOWORK=off go build -C upstream-dex/cli -trimpath -o "$HOME/.local/bin/dexcli" ./cmd/dexcli
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Install Playwright Chromium
working-directory: web
run: npx playwright install --with-deps chromium
- name: Check template
run: make check