Skip to content

Commit 259a0e5

Browse files
committed
added workflows
1 parent c381e0e commit 259a0e5

File tree

4 files changed

+74
-0
lines changed

4 files changed

+74
-0
lines changed

.github/workflows/validate.yaml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: 🚀 Validation Pipeline
2+
concurrency:
3+
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
4+
cancel-in-progress: true
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
11+
permissions:
12+
actions: write
13+
contents: read
14+
# Required to put a comment into the pull-request
15+
pull-requests: write
16+
jobs:
17+
# lint:
18+
# name: ⬣ Biome lint
19+
# runs-on: ubuntu-latest
20+
# steps:
21+
# - name: ⬇️ Checkout repo
22+
# uses: actions/checkout@v4
23+
# - name: Setup Biome
24+
# uses: biomejs/setup-biome@v2
25+
# - name: Run Biome
26+
# run: biome ci .
27+
28+
typecheck:
29+
name: 🔎 Type check
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: 🛑 Cancel Previous Runs
33+
uses: styfle/cancel-workflow-action@0.12.1
34+
- name: ⬇️ Checkout repo
35+
uses: actions/checkout@v4
36+
- name: ⎔ Setup node
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: 20
40+
- name: 📥 Download deps
41+
uses: bahmutov/npm-install@v1
42+
with:
43+
useLockFile: false
44+
- name: 🔎 Type check
45+
run: npm run typecheck
46+
47+
vitest:
48+
name: ⚡ Unit Tests
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: 🛑 Cancel Previous Runs
52+
uses: styfle/cancel-workflow-action@0.12.1
53+
- name: ⬇️ Checkout repo
54+
uses: actions/checkout@v4
55+
- name: ⎔ Setup node
56+
uses: actions/setup-node@v4
57+
with:
58+
node-version: 20
59+
- name: 📥 Download deps
60+
uses: bahmutov/npm-install@v1
61+
with:
62+
useLockFile: false
63+
- name: Install dotenv cli
64+
run: npm install -g dotenv-cli
65+
- name: ⚡ Run vitest
66+
run: npm run test
67+
# - name: "Report Coverage"
68+
# Only works if you set `reportOnFailure: true` in your vite config as specified above
69+
# if: always()
70+
# uses: davelosert/vitest-coverage-report-action@v2
71+

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
"react-router v7",
5656
"react-hook-form",
5757
"hooks",
58+
"remix",
59+
"remix react-hook-form",
60+
"react-router react-hook-form",
5861
"forms"
5962
],
6063
"author": "Alem Tuzlak",

0 commit comments

Comments
 (0)