This repository was archived by the owner on Feb 20, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
112 lines (86 loc) · 2.45 KB
/
ci-run.yml
File metadata and controls
112 lines (86 loc) · 2.45 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: CI
on:
pull_request:
types:
- ready_for_review
- reopened
- opened
- synchronize
branches:
- main
push:
branches:
- main
# manual trigger from Github UI - Action tab
workflow_dispatch:
env:
NEXT_PUBLIC_INFURA_NETWORK: mainnet
PRE_RENDER_INFURA_ID: ${{ secrets.PRE_RENDER_INFURA_ID }}
GRAPHQL_SCHEMA_SUBGRAPH_URL: ${{ secrets.GRAPHQL_SCHEMA_SUBGRAPH_URL }}
jobs:
jest:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install packages
run: yarn install
- name: Tests with yarn
run: yarn test
lint-translations:
name: Lint translation source files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install packages
run: yarn install
- name: Lint translations template
run: 'yarn i18n:lint'
- uses: tj-actions/changed-files@v24.1
id: changed-files
with:
files: '**/*.po'
- name: Check for modified translation source files
if: steps.changed-files.outputs.any_changed == 'true'
run: |
echo "🍎 PRs should not change .po files. Only changes to the messages.pot are allowed."
exit 1
compile:
name: Compile Typescript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install packages
run: yarn install --frozen-lockfile
- name: Codegen
run: 'yarn codegen'
- name: Compile
run: 'yarn ts:compile'
# next-build:
# name: Build
# runs-on: ubuntu-latest
# needs: compile
# steps:
# - uses: actions/checkout@v3
# - uses: actions/cache@v2
# with:
# path: '**/node_modules'
# key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
# - name: Install packages
# run: yarn install --frozen-lockfile
# - name: Build NextJS app
# run: 'yarn build'