-
Notifications
You must be signed in to change notification settings - Fork 22
46 lines (37 loc) · 1.05 KB
/
test_endpoints.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
name: Daily endpoint validity test
on:
schedule:
- cron: '0 8 * * *' # Runs at 8AM UTC every day
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test_endpoints:
runs-on: ubuntu-latest
container:
image: ubuntu:latest
steps:
- name: workaround to for Act(https://github.com/nektos/act/issues/107)
if: ${{ env.ACT }}
run: |
apt-get update && apt-get install sudo -y
- name: Install dependencies
run: |
apt-get update
apt-get install curl jq build-essential pkg-config libssl-dev -y
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
apt-get install -y nodejs
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: |
cd scripts/gavel
cargo build --release --locked
- run: bash ./scripts/test_endpoints.sh
- run: bash ./scripts/missing_endpoints.sh
- uses: actions/upload-artifact@v4
with:
name: endpoint-test-results
path: /tmp/endpoint_tests/results.json