-
Notifications
You must be signed in to change notification settings - Fork 26
56 lines (56 loc) · 1.68 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: tests
on:
push:
branches:
- master
- release
- release-candidate
tags:
- v*
pull_request:
branches:
- master
- release
- release-candidate
jobs:
test:
runs-on: 'ubuntu-latest'
timeout-minutes: 40 # default is 360
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
# https://github.com/actions/checkout/releases/tag/v4.1.7
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Use Node.js ${{ matrix.node-version }}
# https://github.com/actions/setup-node/releases/tag/v4.0.3
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Install gettext
run: sudo apt-get install gettext
- name: Check version
run: make check_version
- name: Pot file
run: make check_pot
- name: Po file
run: make check_po
- name: i18n
run: make i18n
# Tests are currently disabled because of an incompatibility between React 18 and
# React-Scripts v4.
# See related PRs about this:
# https://github.com/HathorNetwork/hathor-wallet/pull/416
# https://github.com/HathorNetwork/hathor-wallet/pull/449
# https://github.com/HathorNetwork/hathor-wallet/pull/567
# - name: Unit tests
# run: npm run test -- --coverage
# - name: Upload coverage
# # https://github.com/codecov/codecov-action/releases/tag/v3.1.4
# uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
- name: Start
run: npm start & npx wait-on http://localhost:3000
env:
CI: true