-
-
Notifications
You must be signed in to change notification settings - Fork 14
88 lines (85 loc) · 2.23 KB
/
module.yml
File metadata and controls
88 lines (85 loc) · 2.23 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: module
on:
push:
branches:
- master
- next
- beta
- alpha
paths-ignore:
- 'site/**'
pull_request:
branches:
- master
paths-ignore:
- 'site/**'
jobs:
test:
strategy:
matrix:
node: [ '12', '14', '16' ]
name: test/node v${{ matrix.node }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Node v${{ matrix.node }}
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: npm i
- name: Run Tests
run: npm test
- name: Upload Coverage to Code Climate
uses: paambaati/codeclimate-action@v3.0.0
if: ${{ matrix.node == '16' }}
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm test
coverageLocations: |
${{ github.workspace }}/coverage/lcov.info:lcov
eslint:
name: ESLint Check
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: 16
- name: Install Dependencies
run: npm i
- name: Delete expired artifacts
uses: LKP-RnD/purge-expired-artifacts-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
repo_to_purge: "KyleRoss/node-lambda-log"
dry_run: "false"
- uses: bradennapier/eslint-plus-action@v3.4.2
with:
includeGlob: 'src/*.ts'
release:
name: Release
if: ${{ github.event_name == 'push' }}
needs: [ test ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: 16
- name: Install Dependencies
run: npm i
- name: Build Package
run: npm run build
- name: Publish to NPM
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release