-
Notifications
You must be signed in to change notification settings - Fork 28
44 lines (36 loc) · 1.18 KB
/
ci.yml
File metadata and controls
44 lines (36 loc) · 1.18 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
name: CI
on:
# Build on PR creation/updates, also when pushing to main/develop, or create a release
pull_request:
types: [opened, synchronize]
push:
branches: [main, develop]
tags: [v*]
jobs:
validate:
name: Validate list schema
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Set up npmrc
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
with:
script:
const { installSdkPreview } = await import("${{github.workspace}}/src/scripts/install-sdk-preview.mjs");
installSdkPreview(context, core);
env:
PACKAGE_READ_AUTH_TOKEN: ${{ secrets.PACKAGE_READ_AUTH_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: lts/*
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run validation
run: yarn validate
- name: Run tests
run: yarn test