-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 1.05 KB
/
ci.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
name: Test and Build
# On a pull request to main, run the checks and build.
on:
pull_request:
branches:
- main
jobs:
test-and-build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false
- name: Install Node 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages 📦
run: npm ci
- name: Lint 🧹
run: npm run lint
- name: Svelte diagnostics 🔮
run: npm run check
- run: npm run build 🛠️
env:
CI: true