-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (46 loc) · 1.36 KB
/
cli.yml
File metadata and controls
57 lines (46 loc) · 1.36 KB
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
50
51
52
53
54
55
56
57
name: Node.js CI
on: [push, pull_request]
jobs:
build:
env:
CI: true
IMAGE_NAME: francescorivola/tribeca-mapper
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
mongodb-version: [4.4]
steps:
- name: Git checkout
uses: actions/checkout@v1
- name: Start MongoDB v${{ matrix.mongodb-version }}
uses: superchargejs/mongodb-github-action@1.1.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm run lint
- run: npm run test-ci
- name: Publish Code Coverage
if: github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v1
- name: Docker Build and Publish
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ${{ env.IMAGE_NAME }}
tag_with_ref: true
tag_with_sha: true
automerge:
needs: build
runs-on: ubuntu-latest
steps:
- uses: fastify/github-action-merge-dependabot@v2.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}