Skip to content

Commit a1f4497

Browse files
committed
add pull-request github action
1 parent 17a9ef8 commit a1f4497

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/pull-request.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Pull Request Checking
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
6+
jobs:
7+
worktree_clean_checking:
8+
name: workspace checking
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repo
12+
uses: actions/checkout@v2
13+
- name: Unshallow clone for tags
14+
run: git fetch --prune --unshallow --tags
15+
- name: Install Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: ${{ matrix.goversion }}
19+
- name: Install pulumictl
20+
uses: jaxxstorm/[email protected]
21+
with:
22+
repo: pulumi/pulumictl
23+
- name: Install Pulumi CLI
24+
uses: pulumi/[email protected]
25+
- name: Setup Node
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: ${{matrix.nodeversion}}
29+
- name: Setup DotNet
30+
uses: actions/setup-dotnet@v1
31+
with:
32+
dotnet-version: ${{matrix.dotnetverson}}
33+
- name: Setup Python
34+
uses: actions/setup-python@v1
35+
with:
36+
python-version: ${{matrix.pythonversion}}
37+
- name: Build SDK
38+
run: make build_${{ matrix.language }}
39+
- name: Check worktree clean
40+
run: |
41+
git update-index -q --refresh
42+
if ! git diff-files --quiet; then
43+
>&2 echo "error: working tree is not clean, aborting!"
44+
git status
45+
git diff
46+
exit 1
47+
fi
48+
strategy:
49+
fail-fast: true
50+
matrix:
51+
dotnetversion:
52+
- 3.1.301
53+
goversion:
54+
- 1.19.x
55+
language:
56+
- nodejs
57+
- python
58+
- dotnet
59+
- go
60+
nodeversion:
61+
- 14.x
62+
pythonversion:
63+
- "3.9"

0 commit comments

Comments
 (0)