Skip to content

Commit c866e35

Browse files
committed
fixed ci and rebuilt
1 parent 64d4cba commit c866e35

File tree

3 files changed

+20787
-31
lines changed

3 files changed

+20787
-31
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
with:
2020
node-version: ${{ env.node_version }}
2121

22-
- name: npm install
23-
run: npm install
22+
- name: yarn install
23+
run: yarn install
2424

25-
- name: npm build
26-
run: npm build
25+
- name: yarn build
26+
run: yarn build
2727

28-
- name: npm run pack
29-
run: npm run package
28+
- name: yarn run pack
29+
run: yarn run pack
3030

3131
audit:
3232
name: Audit
@@ -39,8 +39,8 @@
3939
with:
4040
node-version: ${{ env.node_version }}
4141

42-
- name: npm audit
43-
run: npm audit --audit-level=critical
42+
- name: yarn audit
43+
run: yarn audit --level critical [[ $? -ge 16 ]] && exit 1 || exit 0 # this last part is needed because yarn audit returns a non-0 code if any vulnerabilities are found
4444

4545
lint:
4646
name: Lint
@@ -53,30 +53,28 @@
5353
with:
5454
node-version: ${{ env.node_version }}
5555

56-
- name: npm install
57-
run: npm install
56+
- name: yarn install
57+
run: yarn install
5858

59-
- name: npm lint
60-
run: npm run lint
59+
- name: yarn lint
60+
run: yarn run lint
6161

62-
# No node tests setup yet
62+
test:
63+
name: Test
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v2
6367

64-
# test:
65-
# name: Test
66-
# runs-on: ubuntu-latest
67-
# steps:
68-
# - uses: actions/checkout@v2
69-
#
70-
# - name: Set up Node.js
71-
# uses: actions/setup-node@v1
72-
# with:
73-
# node-version: ${{ env.node_version }}
74-
#
75-
# - name: npm install
76-
# run: npm install
77-
#
78-
# - name: npm test
79-
# run: npm test
68+
- name: Set up Node.js
69+
uses: actions/setup-node@v1
70+
with:
71+
node-version: ${{ env.node_version }}
72+
73+
- name: yarn install
74+
run: yarn install
75+
76+
- name: yarn test
77+
run: yarn test
8078

8179
# test:
8280
# name: Test

dist/index.js

Lines changed: 20759 additions & 1 deletion
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "github-action-codedeploy",
33
"version": "1.0.0",
44
"description": "codedeploy github action",
5-
"main": "lib/main.js",
5+
"main": "lib/index.js",
66
"scripts": {
77
"build": "tsc",
88
"format": "prettier --write **/*.ts",

0 commit comments

Comments
 (0)