-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.61 KB
/
test.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
name: 'Run tests'
on:
push:
workflow_dispatch:
jobs:
unit-tests:
name: 'Unit tests'
runs-on: ubuntu-latest
environment: Testing
env:
BUNQ_API_PATH: ${{ vars.BUNQ_API_PATH }}
BUNQ_API_TOKEN: ${{ secrets.BUNQ_API_TOKEN }}
BUNQ_INSTALLATION_TOKEN: ${{ secrets.BUNQ_INSTALLATION_TOKEN }}
BUNQ_MONETARY_ACCOUNT_ID: ${{ secrets.BUNQ_MONETARY_ACCOUNT_ID }}
YNAB_ACCOUNT_ID: ${{ secrets.YNAB_ACCOUNT_ID }}
YNAB_BUDGET_ID: ${{ secrets.YNAB_BUDGET_ID }}
YNAB_API_PATH: ${{ vars.YNAB_API_PATH }}
YNAB_API_TOKEN: ${{ secrets.YNAB_API_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: 'Setup environment'
run: yarn
- name: 'Run unit tests'
run: yarn test:unit
integration-tests:
name: 'Integration tests'
runs-on: ubuntu-latest
environment: Testing
env:
BUNQ_API_PATH: ${{ vars.BUNQ_API_PATH }}
BUNQ_API_TOKEN: ${{ secrets.BUNQ_API_TOKEN }}
BUNQ_INSTALLATION_TOKEN: ${{ secrets.BUNQ_INSTALLATION_TOKEN }}
BUNQ_MONETARY_ACCOUNT_ID: ${{ secrets.BUNQ_MONETARY_ACCOUNT_ID }}
YNAB_ACCOUNT_ID: ${{ secrets.YNAB_ACCOUNT_ID }}
YNAB_BUDGET_ID: ${{ secrets.YNAB_BUDGET_ID }}
YNAB_API_PATH: ${{ vars.YNAB_API_PATH }}
YNAB_API_TOKEN: ${{ secrets.YNAB_API_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: 'Setup environment'
run: yarn
- name: 'Run integration tests'
run: yarn test:integration