-
Notifications
You must be signed in to change notification settings - Fork 82
44 lines (34 loc) · 955 Bytes
/
main.workflow.yaml
File metadata and controls
44 lines (34 loc) · 955 Bytes
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
name: Run build and test
on:
push:
branches-ignore:
- 'next'
- 'www'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install Chrome
uses: browser-actions/setup-chrome@v1
with:
version: 'latest'
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: 6.0
- name: Setup mongodb-tools
run: |
wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-100.6.1.deb
sudo apt install ./mongodb-database-tools-*-100.6.1.deb
mongorestore --version
- name: Install dependencies
run: npm install
- name: Big Build
run: npm run build
- name: Run tests
run: gulp all