Skip to content

Commit ed312e3

Browse files
add tests and secrets-timeout (#67)
1 parent 89d6f80 commit ed312e3

File tree

11 files changed

+557
-167
lines changed

11 files changed

+557
-167
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Test
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- main # to update code coverage
9+
10+
permissions: # added using https://github.com/step-security/secure-workflows
11+
contents: read
12+
concurrency:
13+
group: ${{ github.workflow }}
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Harden Runner
19+
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5 # v2.0.0
20+
with:
21+
disable-sudo: true
22+
egress-policy: block
23+
allowed-endpoints: >
24+
codecov.io:443
25+
github.com:443
26+
registry.npmjs.org:443
27+
storage.googleapis.com:443
28+
uploader.codecov.io:443
29+
30+
- name: Checkout
31+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
32+
- name: Install Dependencies
33+
run: npm install
34+
- name: Run coverage
35+
run: npm test -- --coverage
36+
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ inputs:
77
slack-webhook-url:
88
description: "Webhook URL to send link to"
99
required: false
10+
wait-timeout:
11+
description: "Timeout to input secrets in minutes"
12+
default: "10"
1013
branding:
1114
icon: "check-square"
1215
color: "green"

dist/index.js

Lines changed: 88 additions & 93 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jest.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2+
module.exports = {
3+
preset: 'ts-jest',
4+
testEnvironment: 'node',
5+
};

0 commit comments

Comments
 (0)