-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (42 loc) · 1.18 KB
/
main.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
name: Main CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14', '16' ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: docker pull ghcr.io/violinist-dev/update-check-runner:8.0-multi-composer-2
- run: npm install
- run: echo "{}" > config.json
- run: npm test
env:
CI_ACCESS_KEY_ID: ${{ secrets.CI_ACCESS_KEY_ID }}
CI_SECRET_KEY: ${{ secrets.CI_SECRET_KEY }}
CI_AWS_REGION: ${{ secrets.CI_AWS_REGION }}
- run: /bin/sh ./clean-repo.sh
if: matrix.node == 14
- run: npm run coverage
if: matrix.node == 14
env:
CI_ACCESS_KEY_ID: ${{ secrets.CI_ACCESS_KEY_ID }}
CI_SECRET_KEY: ${{ secrets.CI_SECRET_KEY }}
CI_AWS_REGION: ${{ secrets.CI_AWS_REGION }}
- name: Coveralls
if: matrix.node == 14
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}