Skip to content

Commit d2cc101

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

File tree

2 files changed

+55
-12
lines changed

2 files changed

+55
-12
lines changed

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

Lines changed: 36 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 19 additions & 7 deletions
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: 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy