-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: "Resolve environment" | ||
description: "Tests that the resolve-environment action works for Go" | ||
versions: ["stable-v2.13.4"] | ||
steps: | ||
- uses: ./../action/init | ||
with: | ||
languages: go | ||
tools: ${{ steps.prepare-test.outputs.tools-url }} | ||
|
||
- uses: ./../action/resolve-environment | ||
id: resolve-environment | ||
with: | ||
language: go | ||
|
||
- name: "Fail if no Go configuration was returned" | ||
if: (!fromJSON(steps.resolve-environment.outputs.environment).configuration.go) | ||
run: exit 1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: 'CodeQL: Resolve Build Environment' | ||
description: '[Experimental] Attempt to infer a build environment suitable for automatic builds' | ||
author: 'GitHub' | ||
inputs: | ||
token: | ||
default: ${{ github.token }} | ||
matrix: | ||
default: ${{ toJson(matrix) }} | ||
language: | ||
description: The language to infer the build environment configuration for. | ||
required: true | ||
working-directory: | ||
description: >- | ||
Resolve the build environment based on the files located at the specified | ||
path (relative to $GITHUB_WORKSPACE). If this input is not set, then the | ||
build environment is resolved based on the files in $GITHUB_WORKSPACE. | ||
required: false | ||
outputs: | ||
environment: | ||
description: The inferred build environment configuration. | ||
runs: | ||
using: 'node16' | ||
main: '../lib/resolve-environment-action.js' |