Skip to content

Commit da25f0f

Browse files
committed
test mise in github actions
1 parent e747d5d commit da25f0f

File tree

2 files changed

+49
-27
lines changed

2 files changed

+49
-27
lines changed

β€Ž.github/workflows/test.yamlβ€Ž

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Tests
2+
on:
3+
workflow_dispatch:
4+
push:
5+
6+
permissions:
7+
id-token: write # This is required for requesting the JWT
8+
contents: read # This is required for actions/checkout
9+
jobs:
10+
test:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
16+
- name: Setup mise
17+
uses: jdx/mise-action@v3
18+
with:
19+
version: 2025.10.21
20+
install: true
21+
cache: true
22+
#TODO: remove me after debugging
23+
log_level: debug
24+
25+
- name: Get pnpm store directory
26+
id: pnpm-cache
27+
shell: bash
28+
run: |
29+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
30+
31+
- name: Setup pnpm cache
32+
uses: actions/cache@v4
33+
with:
34+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
35+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
36+
restore-keys: |
37+
${{ runner.os }}-pnpm-store-
38+
39+
- name: Install dependencies
40+
run: pnpm install --frozen-lockfile --prefer-offline
41+
42+
- name: Code Lint
43+
run: mise task lint
44+
45+
- name: Type Check
46+
run: mise task typecheck
47+
48+
- name: Unit Tests
49+
run: mise task test

β€Ž.github/workflows/test.yaml.todoβ€Ž

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

0 commit comments

Comments
Β (0)