-
-
Notifications
You must be signed in to change notification settings - Fork 31
34 lines (29 loc) · 745 Bytes
/
Copy pathvalidate.yml
File metadata and controls
34 lines (29 loc) · 745 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
# This workflow will make sure the code is linted, tested and valid
name: Validate
permissions:
contents: read
on:
push:
branches:
- '**'
- '!main'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
oxlint:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: npx --yes oxlint@latest --deny-warnings # change to the latest release
test:
name: Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v6
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm test --coverage