Skip to content

Commit b8720f4

Browse files
authored
Merge pull request #9 from SpawnDock/codex/effect-check-workflows
ci: adopt effect-style check workflow for dev-tunnel
2 parents 7727231 + 21c93df commit b8720f4

4 files changed

Lines changed: 70 additions & 20 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Setup
2+
description: Perform standard setup and install dependencies using npm.
3+
4+
inputs:
5+
node-version:
6+
description: The version of Node.js to install
7+
required: true
8+
default: 22.12.0
9+
10+
runs:
11+
using: composite
12+
steps:
13+
- name: Install node
14+
uses: actions/setup-node@v6
15+
with:
16+
cache: npm
17+
node-version: ${{ inputs.node-version }}
18+
- name: Install dependencies
19+
shell: bash
20+
run: npm ci

.github/workflows/check.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Check
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
pull_request:
7+
branches: [main]
8+
push:
9+
branches: [main]
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions: {}
16+
17+
env:
18+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
19+
20+
jobs:
21+
build:
22+
name: Build
23+
runs-on: ubuntu-latest
24+
timeout-minutes: 10
25+
steps:
26+
- uses: actions/checkout@v6
27+
- name: Install dependencies
28+
uses: ./.github/actions/setup
29+
- run: npm run build
30+
31+
types:
32+
name: Types
33+
runs-on: ubuntu-latest
34+
timeout-minutes: 10
35+
steps:
36+
- uses: actions/checkout@v6
37+
- name: Install dependencies
38+
uses: ./.github/actions/setup
39+
- run: npx tsc --noEmit
40+
41+
test:
42+
name: Test
43+
runs-on: ubuntu-latest
44+
timeout-minutes: 10
45+
steps:
46+
- uses: actions/checkout@v6
47+
- name: Install dependencies
48+
uses: ./.github/actions/setup
49+
- run: npm test

.github/workflows/ci.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212

1313
jobs:
1414
check:
15-
uses: ./.github/workflows/ci.yml
15+
uses: ./.github/workflows/check.yml
1616

1717
publish:
1818
needs: check

0 commit comments

Comments
 (0)