Skip to content

Commit 36c6fa4

Browse files
authored
Merge pull request #63 from per1234/test-integration
Sync integration test assets from "templates"
2 parents e0774cf + 456614e commit 36c6fa4

File tree

44 files changed

+15
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+15
-11
lines changed

.github/workflows/test-integration.yml renamed to .github/workflows/test-go-integration-task.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/test-go-integration-task.md
12
name: Test Integration
23

34
env:
@@ -10,24 +11,24 @@ env:
1011
on:
1112
push:
1213
paths:
13-
- ".github/workflows/test-integration.yml"
14-
- "Taskfile.yml"
14+
- ".github/workflows/test-go-integration-task.ya?ml"
15+
- "Taskfile.ya?ml"
1516
- "**.go"
1617
- "go.mod"
1718
- "go.sum"
1819
- "poetry.lock"
1920
- "pyproject.toml"
20-
- "test/**"
21+
- "tests/**"
2122
pull_request:
2223
paths:
23-
- ".github/workflows/test-integration.yml"
24-
- "Taskfile.yml"
24+
- ".github/workflows/test-go-integration-task.ya?ml"
25+
- "Taskfile.ya?ml"
2526
- "**.go"
2627
- "go.mod"
2728
- "go.sum"
2829
- "poetry.lock"
2930
- "pyproject.toml"
30-
- "test/**"
31+
- "tests/**"
3132
workflow_dispatch:
3233
repository_dispatch:
3334

@@ -52,7 +53,7 @@ jobs:
5253
- name: Install Poetry
5354
run: pip install poetry
5455

55-
- name: Install Taskfile
56+
- name: Install Task
5657
uses: arduino/setup-task@v1
5758
with:
5859
repo-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 0 deletions

Taskfile.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ tasks:
2323
- task: python:format
2424
- task: general:format-prettier
2525

26+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/go-task/Taskfile.yml
2627
go:build:
27-
desc: Build the project
28+
desc: Build the Go code
2829
cmds:
29-
- go build -v {{.GO_BUILD_FLAGS}}
30+
- go build -v {{.LDFLAGS}}
3031

3132
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-go-task/Taskfile.yml
3233
go:test:
@@ -41,13 +42,14 @@ tasks:
4142
-coverprofile=coverage_unit.txt \
4243
{{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
4344
45+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-go-integration-task/Taskfile.yml
4446
go:test-integration:
4547
desc: Run integration tests
4648
deps:
49+
- task: go:build
4750
- task: poetry:install-deps
4851
cmds:
49-
- task: go:build
50-
- poetry run pytest test
52+
- poetry run pytest tests
5153

5254
go:vet:
5355
desc: Check for errors in Go code
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)