generated from Open-Science-Community-Saudi-Arabia/Template
-
Notifications
You must be signed in to change notification settings - Fork 36
39 lines (33 loc) · 980 Bytes
/
automated_tests.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
name: Node.js CI
on:
push:
branches: [main, dev, backend_dev, frontend_dev, auto_tests, test_auto]
pull_request_target:
branches: [main, dev, backend_dev, frontend_dev, auto_tests, test_auto]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15.x, 16.x, 17.x, 18.x]
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Create env file for test environment
# run: |
# cd ./API/src
# touch ./.env.test
# printf "${{secrets.ENV_TEST}}" >> ./.env.test
# echo 'testasdfasdfasdf' >> ./.env.test
# cat .env.test
# pwd
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# - run: |
# cd ./API/src
# cat .env.test
# pwd
# npm install
# npm run test