forked from 419Labs/starknet-ecosystem.com
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 897 Bytes
/
main.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
name: CI
on:
push:
branches: [ main ]
jobs:
frontend:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install
run: yarn install
- name: Lint
run: yarn lint
- name: Test
run: yarn test:ci
- name: Validate data
run: cd .github/script && yarn install && yarn validate-data
- name: Build
run: yarn build
- name: Sync data
env:
STARKNET_DB_URL: ${{ secrets.STARKNET_DB_URL }}
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }}
AUTH0_AUDIENCE: ${{ secrets.AUTH0_AUDIENCE }}
run: cd .github/script && yarn install && yarn sync-data