Skip to content

Commit ecd1837

Browse files
authored
Merge pull request #241 from per1234/test-updates
Finish sync of test infrastructure with "template" assets
2 parents fdd0232 + 9c34e7a commit ecd1837

File tree

7 files changed

+24
-73
lines changed

7 files changed

+24
-73
lines changed

Diff for: .github/workflows/check-code-generation-task.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ on:
88
push:
99
paths:
1010
- ".github/workflows/check-code-generation-task.ya?ml"
11-
- "Taskfile.yml"
11+
- "Taskfile.ya?ml"
1212
- "go.mod"
1313
- "go.sum"
14-
- "**/*.go"
14+
- "**.go"
1515
- "etc/schemas/**/*.json"
1616
pull_request:
1717
paths:
1818
- ".github/workflows/check-code-generation-task.ya?ml"
19-
- "Taskfile.yml"
19+
- "Taskfile.ya?ml"
2020
- "go.mod"
2121
- "go.sum"
22-
- "**/*.go"
22+
- "**.go"
2323
- "etc/schemas/**/*.json"
2424

2525
jobs:

Diff for: .github/workflows/test-go-integration-task.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ env:
77
# See: https://github.com/actions/setup-python/tree/v2#available-versions-of-python
88
PYTHON_VERSION: "3.9"
99

10+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
1011
on:
1112
push:
1213
paths:
@@ -28,6 +29,8 @@ on:
2829
- "poetry.lock"
2930
- "pyproject.toml"
3031
- "tests/**"
32+
workflow_dispatch:
33+
repository_dispatch:
3134

3235
jobs:
3336
test:
@@ -36,7 +39,7 @@ jobs:
3639
operating-system:
3740
- ubuntu-latest
3841
- windows-latest
39-
- macOS-latest
42+
- macos-latest
4043

4144
runs-on: ${{ matrix.operating-system }}
4245

@@ -49,12 +52,6 @@ jobs:
4952
with:
5053
go-version: ${{ env.GO_VERSION }}
5154

52-
- name: Install Task
53-
uses: arduino/setup-task@v1
54-
with:
55-
repo-token: ${{ secrets.GITHUB_TOKEN }}
56-
version: 3.x
57-
5855
- name: Install Python
5956
uses: actions/setup-python@v2
6057
with:
@@ -63,5 +60,11 @@ jobs:
6360
- name: Install Poetry
6461
run: pip install poetry
6562

63+
- name: Install Task
64+
uses: arduino/setup-task@v1
65+
with:
66+
repo-token: ${{ secrets.GITHUB_TOKEN }}
67+
version: 3.x
68+
6669
- name: Run integration tests
6770
run: task go:test-integration

Diff for: .github/workflows/test-go-task.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,26 @@ env:
55
# See: https://github.com/actions/setup-go/tree/v2#readme
66
GO_VERSION: "1.16"
77

8+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
89
on:
910
push:
1011
paths:
1112
- ".github/workflows/test-go-task.ya?ml"
12-
- "Taskfile.yml"
1313
- "go.mod"
1414
- "go.sum"
15-
- "**/*.go"
15+
- "Taskfile.ya?ml"
16+
- "**.go"
1617
- "**/testdata/**"
1718
pull_request:
1819
paths:
1920
- ".github/workflows/test-go-task.ya?ml"
20-
- "Taskfile.yml"
2121
- "go.mod"
2222
- "go.sum"
23-
- "**/*.go"
23+
- "Taskfile.ya?ml"
24+
- "**.go"
2425
- "**/testdata/**"
26+
workflow_dispatch:
27+
repository_dispatch:
2528

2629
jobs:
2730
test:
@@ -30,7 +33,7 @@ jobs:
3033
operating-system:
3134
- ubuntu-latest
3235
- windows-latest
33-
- macOS-latest
36+
- macos-latest
3437

3538
runs-on: ${{ matrix.operating-system }}
3639

Diff for: .github/workflows/test-install.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Test install script
33
on:
44
push:
55
paths:
6-
- ".github/workflows/test-install.yml"
6+
- ".github/workflows/test-install.ya?ml"
77
- "etc/install.sh"
88
pull_request:
99
paths:
10-
- ".github/workflows/test-install.yml"
10+
- ".github/workflows/test-install.ya?ml"
1111
- "etc/install.sh"
1212
schedule:
1313
# Run every day at 03:00 UTC to catch breakage caused by external events

Diff for: docs/siteversion/tests/__init__.py

-12
This file was deleted.

Diff for: docs/siteversion/tests/pytest.ini

-10
This file was deleted.

Diff for: docs/siteversion/tests/test_all.py

-33
This file was deleted.

0 commit comments

Comments
 (0)