Skip to content

Commit e5645f9

Browse files
committed
chore: setup github actions
Planning to move from CircleCI to GitHub actions
1 parent 9ee013c commit e5645f9

File tree

2 files changed

+32
-40
lines changed

2 files changed

+32
-40
lines changed

.circleci/config.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will do a clean installation of node dependencies, cache/
2+
# restore them, build the source code and run tests across different versions
3+
# of node
4+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
5+
6+
name: CI Tests
7+
env:
8+
MONGODB_URI: ${{ secrets.MONGODB_URI }}
9+
on:
10+
push:
11+
branches: ['master']
12+
pull_request:
13+
branches: ['master']
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
matrix:
20+
node-version: [16.x]
21+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'npm'
30+
- run: npm ci
31+
- run: npm run build --if-present
32+
- run: npm test

0 commit comments

Comments
 (0)