Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit a474279

Browse files
authored
ci(GitHub Actions): Migrate from CircleCI to GitHub Actions [CICD-236] (#389)
1 parent 6ac1ecc commit a474279

2 files changed

Lines changed: 52 additions & 54 deletions

File tree

.circleci/config.yml

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

.github/workflows/integration.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Integration Suite
2+
3+
on: ['push']
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
8+
9+
jobs:
10+
integrate:
11+
name: Integration
12+
runs-on: ubuntu-latest
13+
env:
14+
NPM_CONFIG_LOGLEVEL: warn
15+
WINSTON_CONSOLE_LEVEL: none
16+
EXPRESS_PORT: 1337
17+
18+
services:
19+
mongodb:
20+
image: mongo:3.7.9
21+
env:
22+
MONGO_INITDB_DATABASE: test
23+
ALLOW_EMPTY_PASSWORD: yes
24+
ports:
25+
- 27017:27017
26+
options: --health-cmd="mongo" --health-interval=10s --health-timeout=5s --health-retries=5
27+
28+
steps:
29+
- uses: actions/checkout@v3
30+
31+
- uses: actions/setup-node@v3
32+
with:
33+
node-version: "14"
34+
cache: 'npm'
35+
36+
- name: Installing Dependencies
37+
run: npm ci
38+
39+
- name: Compiling Code
40+
run: npm run build
41+
42+
- name: Running Tests
43+
run: npm run cover-ci
44+
45+
- name: Linting Code
46+
run: npm run lint
47+
48+
- name: Semantic Release
49+
if: github.ref == 'refs/heads/master'
50+
run: npm run semantic-release
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)