-
Notifications
You must be signed in to change notification settings - Fork 14
38 lines (36 loc) · 817 Bytes
/
test.yml
File metadata and controls
38 lines (36 loc) · 817 Bytes
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
name: Test
on:
workflow_dispatch:
pull_request:
paths:
- "src/**"
- "tests/**"
branches: [main, master]
push:
paths:
- "src/**"
- "tests/**"
branches: [main, master]
jobs:
tests:
if: github.repository == 'raycast/utils'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: raycast/github-actions/git-checkout@v1.13.0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22.14.0
- name: Npm Install
run: npm ci
- name: Npm Lint
run: npm run test
- name: Build
run: npm run build
- name: Npm Install Tests
run: npm ci
working-directory: ./tests
- name: Build tests
run: npm run build
working-directory: ./tests