-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (44 loc) · 1.02 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
39
40
41
42
43
44
45
46
47
48
49
50
# CI for the src folder
name: CI
on:
pull_request:
branches:
- master
- next
paths:
- 'test/**'
- 'src/**'
- 'config/**'
- "ci-bin/**"
- 'package.json'
- 'yarn.lock'
push:
branches:
- master
- next
paths:
- 'test/**'
- 'src/**'
- 'config/**'
- '.github/**'
- 'package.json'
- 'yarn.lock'
jobs:
test-plebbit-cli:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn oclif manifest
# disable hosts we shouldn't use
- run: sudo echo "255.255.255.255 cloudflare-ipfs.com" | sudo tee -a /etc/hosts
- run: sudo echo "255.255.255.255 pubsubprovider.xyz" | sudo tee -a /etc/hosts
- run: DEBUG="plebbit*" yarn test:cli