Skip to content

Commit f243294

Browse files
committed
Extend PR check to test resolve-environment works with language alias
1 parent e26ed57 commit f243294

File tree

2 files changed

+56
-12
lines changed

2 files changed

+56
-12
lines changed

.github/workflows/__resolve-environment-action.yml

+37-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
11
name: "Resolve environment"
2-
description: "Tests that the resolve-environment action works for Go"
3-
versions: ["stable-v2.13.4"]
2+
description: "Tests that the resolve-environment action works for Go and JavaScript/TypeScript"
3+
versions: ["stable-v2.13.4", "default", "latest", "nightly-latest"]
44
steps:
55
- uses: ./../action/init
66
with:
7-
languages: go
7+
languages: ${{ matrix.version == 'stable-v2.13.4' && 'go' || 'go,javascript-typescript' }}
88
tools: ${{ steps.prepare-test.outputs.tools-url }}
99

10-
- uses: ./../action/resolve-environment
11-
id: resolve-environment
10+
- name: Resolve environment for Go
11+
uses: ./../action/resolve-environment
12+
id: resolve-environment-go
1213
with:
1314
language: go
1415

15-
- name: "Fail if no Go configuration was returned"
16-
if: (!fromJSON(steps.resolve-environment.outputs.environment).configuration.go)
16+
- name: Fail if Go configuration missing
17+
if: (!fromJSON(steps.resolve-environment-go.outputs.environment).configuration.go)
18+
run: exit 1
19+
20+
- name: Resolve environment for JavaScript/TypeScript
21+
if: matrix.version != 'stable-v2.13.4'
22+
uses: ./../action/resolve-environment
23+
id: resolve-environment-js
24+
with:
25+
language: javascript-typescript
26+
27+
- name: Fail if JavaScript/TypeScript configuration present
28+
if: matrix.version != 'stable-v2.13.4' && fromJSON(steps.resolve-environment-js.outputs.environment).configuration.javascript
1729
run: exit 1

0 commit comments

Comments
 (0)