-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (42 loc) · 1.14 KB
/
validate.yml
File metadata and controls
53 lines (42 loc) · 1.14 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
name: Validate
on: [push]
jobs:
test:
name: Lint & Test
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: pnpm/action-setup@v4.0.0
id: install_pnpm
with:
version: 10.26.2
- name: echo npm dest
run: echo "pnpm installed in ${{steps.install_pnpm.outputs.dest}}"
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'pnpm'
- name: Cache pnpm modules
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Creating .npmrc
run: |
"${GITHUB_WORKSPACE}/scripts/create-npmrc.sh" "${{ secrets.NPM_TOKEN }}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install Dependencies
run: pnpm i --no-frozen-lockfile
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test