File tree Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Expand file tree Collapse file tree 2 files changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on : [release]
4
+
5
+ jobs :
6
+ publish-npm :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v1
10
+ - uses : actions/setup-node@v1
11
+ with :
12
+ version : 12
13
+ registry-url : https://registry.npmjs.org/
14
+ - run : npm publish
15
+ env :
16
+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+ push :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ${{ matrix.os }}
14
+ strategy :
15
+ fail-fast : false
16
+ matrix :
17
+ os : [ubuntu-latest, windows-latest, macOS-latest]
18
+ python-version : [3.6, 3.7, 2.7]
19
+ node-version : [8, 10, 12]
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+
23
+ - name : Set up Python ${{ matrix.python-version }}
24
+ uses : actions/setup-python@v1
25
+ with :
26
+ version : ${{ matrix.python-version }}
27
+ - name : Set up Node ${{ matrix.node-version }}
28
+ uses : actions/setup-node@v1
29
+ with :
30
+ version : ${{ matrix.node-version }}
31
+ - name : Install pipenv
32
+ uses : dschep/install-pipenv-action@v1
33
+ - name : Install poetry
34
+
35
+ with :
36
+ preview : false
37
+
38
+ - name : Install serverless
39
+ run : npm install -g serverless
40
+
41
+ - name : Install deps
42
+ run : npm install
43
+
44
+ - name : Lint
45
+ run : npm run ci:lint
46
+
47
+ - name : Test
48
+ run : |
49
+ PATH=$HOME/.poetry/bin:$PATH \
50
+ LC_ALL=C.UTF-8 \
51
+ LANG=C.UTF-8 \
52
+ npm run test
53
+ env :
54
+ RUNTIME : python${{ matrix.python-version }}
You can’t perform that action at this time.
0 commit comments