-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (41 loc) · 1.26 KB
/
ci.yaml
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
name: CI Tests
env:
NODE_VERSION: 20
on:
push:
paths-ignore:
- '**.md'
jobs:
executing-tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js Version
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://npm.pkg.github.com/'
scope: '@staffbase'
- run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.STAFFBOT_NPM_READ }}" >> samples/weather-forecast/.npmrc
- name: Install Yarn Dependencies
working-directory: samples/weather-forecast
run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.STAFFBOT_NPM_READ }}
- name: Run Build
working-directory: samples/weather-forecast
env:
NODE_OPTIONS: --openssl-legacy-provider
run: yarn build
- name: Run Lint
working-directory: samples/weather-forecast
run: yarn lint
- name: Run Type check
working-directory: samples/weather-forecast
run: yarn type-check
- name: Run Tests
working-directory: samples/weather-forecast
run: yarn test