-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (53 loc) · 1.48 KB
/
validate-app.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
name: Validate app
on:
pull_request:
branches:
- main
- develop
paths:
- .github/workflows/validate-app.yml
- app/**
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1
- uses: oven-sh/setup-bun@v1.1.1
with:
bun-version: 1.0.25
- uses: actions/cache@v4.0.0
id: node-modules-cache
with:
path: app/node_modules
key: ${{ runner.os }}-${{ hashFiles('app/bun.lockb') }}
- name: Install app dependencies
run: bun install
working-directory: app
if: steps.node-modules-cache.outputs.cache-hit != 'true'
- name: Lint
run: bun run lint
working-directory: app
continue-on-error: true
env:
UNLEASH_SERVER_API_URL: "https://foo"
UNLEASH_SERVER_API_TOKEN: "foo"
prettier:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1
- uses: oven-sh/setup-bun@v1.1.1
with:
bun-version: 1.0.25
- uses: actions/cache@v4.0.0
id: node-modules-cache
with:
path: app/node_modules
key: ${{ runner.os }}-${{ hashFiles('app/bun.lockb') }}
- name: Install app dependencies
run: bun install
working-directory: app
if: steps.node-modules-cache.outputs.cache-hit != 'true'
- name: Prettier
run: bunx prettier --check .
working-directory: app
continue-on-error: true