-
-
Notifications
You must be signed in to change notification settings - Fork 11
113 lines (108 loc) · 2.65 KB
/
push.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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# this workflow will run on all pushes.
on:
push:
name: "push"
jobs:
test-default:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
-
name: Checkout code
uses: actions/checkout@v4
-
uses: actions/setup-node@v3
-
name: Serve Files
uses: ./
with:
directory: ${{ github.workspace }}/.github
port: 9090
no-cache: true
content-types: |
{
"md": "text/markdown"
}
-
run: node .github/test-default.js
test-index-files:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
-
name: Checkout code
uses: actions/checkout@v4
-
uses: actions/setup-node@v3
-
name: Serve Files
uses: ./
with:
directory: ${{ github.workspace }}/.github
port: 9090
no-cache: true
index-files: |
["PULL_REQUEST_TEMPLATE.md"]
-
run: node .github/test-index-files.js
test-allowed-methods:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
-
name: Checkout code
uses: actions/checkout@v4
-
uses: actions/setup-node@v3
-
name: Serve Files
uses: ./
with:
directory: ${{ github.workspace }}/.github
port: 9090
no-cache: true
allowed-methods: |
["POST"]
-
run: node .github/test-allowed-methods.js
test-logging:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
-
name: Checkout code
uses: actions/checkout@v4
-
uses: actions/setup-node@v3
-
name: Serve Files
uses: ./
with:
directory: ${{ github.workspace }}/.github
port: 9090
no-cache: true
allowed-methods: |
["GET", "POST"]
log: log.txt
logTime: false
-
run: node .github/test-logging.js
# draft your next release notes as pull requests are merged into "master"
# the configuration is at /.github/release-drafter.yml.
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
if: github.ref == 'refs/heads/master'
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}