forked from nocodb/nocodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_node.js.yml
49 lines (41 loc) · 1.65 KB
/
_node.js.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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
cypress-run:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cypress run
uses: cypress-io/github-action@v2
with:
start: docker run -p 8080:8080 -p 8081:8081 -p 8082:8082 -d --name xc-instant --env nocodb/nocodb:latest ; sleep 10
wait-on: 'http://localhost:8080/dashboard'
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test Mysql REST APIs
run: cd ./packages/nocodb/ && docker-compose run xc-test-mysql
- name: Test Mysql GraphQL APIs
run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-mysql
# - name: Test MSSQL REST APIs
# run: cd ./packages/nocodb/ && docker-compose run xc-test-mssql
# - name: Test MSSQL GraphQL APIs
# run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-mssql
#
# - name: Test PostgreSQL REST APIs
# run: cd ./packages/nocodb/ && docker-compose run xc-test-pg
# - name: Test PostgreSQL GraphQL APIs
# run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-pg
#
# - name: Test SQLite3 REST APIs
# run: cd ./packages/nocodb/ && docker-compose run xc-test-sqlite
# - name: Test SQLite3 GraphQL APIs
# run: cd ./packages/nocodb/ && docker-compose run xc-test-gql-sqlite