-
-
Notifications
You must be signed in to change notification settings - Fork 142
82 lines (76 loc) · 2.94 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
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
name: Test
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
env:
SETTINGS_AWS_ACCESS_KEY_ID: ${{ secrets.SETTINGS_AWS_ACCESS_KEY_ID }}
SETTINGS_AWS_SECRET_ACCESS_KEY: ${{ secrets.SETTINGS_AWS_SECRET_ACCESS_KEY }}
SETTINGS_AWS_REGION: ${{ secrets.SETTINGS_AWS_REGION }}
NODE_VERSION: ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v1
- name: Start up databases
run: docker-compose up -d
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Use npm version 9.6
run: npm install -g [email protected]
- name: Install project dependencies
run: npm install
- name: Install package dependencies and build packages
run: npm run bootstrap
- name: Create CLI symlink in the global folder
run: npm link
working-directory: packages/cli
- name: Check for the absence of "describe.only()" and "it.only()"
run: if grep -Rl ".only(" ./packages/*/src ; then echo "Unexpected describe.only() or it.only() found."; exit 1; else exit 0; fi
- name: Check package linting
run: npm run lint
- name: Run unit tests of @foal/acceptance-tests
run: cd packages/acceptance-tests && npm run test
- name: Run unit tests of @foal/aws-s3
run: cd packages/aws-s3 && npm run test
- name: Run unit tests of @foal/cli
run: cd packages/cli && npm run test
- name: Run unit tests of @foal/examples
run: cd packages/examples && npm run test
- name: Run unit tests of @foal/graphiql
run: cd packages/graphiql && npm run test
- name: Run unit tests of @foal/graphql
run: cd packages/graphql && npm run test
- name: Run unit tests of @foal/jwks-rsa
run: cd packages/jwks-rsa && npm run test
- name: Run unit tests of @foal/jwt
run: cd packages/jwt && npm run test
- name: Run unit tests of @foal/mongodb
run: cd packages/mongodb && npm run test
- name: Run unit tests of @foal/password
run: cd packages/password && npm run test
- name: Run unit tests of @foal/redis
run: cd packages/redis && npm run test
- name: Run unit tests of @foal/social
run: cd packages/social && npm run test
- name: Run unit tests of @foal/socket.io
run: cd packages/socket.io && npm run test
- name: Run unit tests of @foal/storage
run: cd packages/storage && npm run test
- name: Run unit tests of @foal/swagger
run: cd packages/swagger && npm run test
- name: Run unit tests of @foal/typeorm
run: cd packages/typeorm && npm run test
- name: Run unit tests of @foal/typestack
run: cd packages/typestack && npm run test
- name: Run unit tests of @foal/core
run: cd packages/core && npm run test
- name: Run acceptance tests (Bash)
run: ./e2e_test.sh