Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump setup-dotnet@v2 to v3 #106

Merged
merged 5 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 36 additions & 17 deletions .github/workflows/dotnet_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches: ["main"]
pull_request:
branches: ["main"]

env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: true
Expand All @@ -14,45 +15,63 @@ env:
# colour output
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1
TERM: xterm

jobs:
dotnet-console:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- run: command -v dotnet
- run: ls /usr/share/dotnet/sdk
- run: dotnet --version
- run: dotnet --list-sdks
- uses: actions/setup-dotnet@v2
- name: dotnet executable path before setup-dotnet (/usr/bin/dotnet)
run: command -v dotnet
- name: dotnet version under /usr/share/dotnet/sdk
run: ls /usr/share/dotnet/sdk
- name: dotnet executable version before setup-dotnet
run: dotnet --version
- name: dotnet sdks before setup-dotnet
run: dotnet --list-sdks
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- run: command -v dotnet
- run: ls /usr/share/dotnet/sdk
- run: ls -l "$HOME/.dotnet/sdk"
- run: dotnet --version
- run: dotnet --list-sdks
- run: dotnet build ./src/dotnet/console/ -c Debug
- run: dotnet test ./src/dotnet/console-tests/ -c Debug --logger GitHubActions
- run: dotnet publish ./src/dotnet/console/ -c Debug -o ./out/dotnet-console
- name: dotnet executable path after setup-dotnet (/usr/share/dotnet/dotnet)
run: command -v dotnet
- name: dotnet version under /usr/share/dotnet/sdk
run: ls /usr/share/dotnet/sdk
- name: dotnet version after setup-dotnet
run: ls -l "${DOTNET_ROOT}/sdk"
- name: dotnet executable version after setup-dotnet
run: dotnet --version
- name: dotnet sdks after setup-dotnet
run: dotnet --list-sdks
- name: dotnet build
run: dotnet build ./src/dotnet/console/ -c Debug
- name: dotnet test
run: dotnet test ./src/dotnet/console-tests/ -c Debug --logger GitHubActions
- name: dotnet publish
run: dotnet publish ./src/dotnet/console/ -c Debug -o ./out/dotnet-console
- uses: actions/upload-artifact@v2
with:
name: dotnet-console
path: ./out/dotnet-console

dotnet-console-container:
runs-on: ubuntu-latest
timeout-minutes: 3
container:
image: mcr.microsoft.com/dotnet/sdk:6.0
steps:
- uses: actions/checkout@v4
- run: dotnet build ./src/dotnet/console/ -c Debug
- run: dotnet test ./src/dotnet/console-tests/ -c Debug --logger GitHubActions
- run: dotnet publish ./src/dotnet/console/ -c Debug -o ./out/dotnet-console-container
- name: dotnet build
run: dotnet build ./src/dotnet/console/ -c Debug
- name: dotnet test
run: dotnet test ./src/dotnet/console-tests/ -c Debug --logger GitHubActions
- name: dotnet publish
run: dotnet publish ./src/dotnet/console/ -c Debug -o ./out/dotnet-console-container
- uses: actions/upload-artifact@v2
with:
name: dotnet-console-container
path: ./out/dotnet-console-container

ls:
runs-on: ubuntu-latest
timeout-minutes: 3
Expand All @@ -61,4 +80,4 @@ jobs:
- dotnet-console-container
steps:
- uses: actions/download-artifact@v2
- run: ls -l
- run: ls -lR
4 changes: 2 additions & 2 deletions .github/workflows/dotnet_build_only_tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v2
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- run: dotnet build ./src/dotnet/console/ -c Debug
Expand All @@ -47,7 +47,7 @@ jobs:
image: mcr.microsoft.com/dotnet/sdk:6.0
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v2
- uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet }}
# build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dotnet_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v2
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
# dotnet list
Expand Down
36 changes: 18 additions & 18 deletions contexts/export/pull_request_opened.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ declare -x GITHUB_ACTOR="guitarrapc"
declare -x GITHUB_ACTOR_ID="3856350"
declare -x GITHUB_API_URL="https://api.github.com"
declare -x GITHUB_BASE_REF="main"
declare -x GITHUB_ENV="/home/runner/work/_temp/_runner_file_commands/set_env_f7481f61-e191-459b-802e-6e12e01ae996"
declare -x GITHUB_ENV="/home/runner/work/_temp/_runner_file_commands/set_env_29da5d32-adcf-4601-a641-c766ff4cfdd8"
declare -x GITHUB_EVENT_NAME="pull_request"
declare -x GITHUB_EVENT_PATH="/home/runner/work/_temp/_github_workflow/event.json"
declare -x GITHUB_GRAPHQL_URL="https://api.github.com/graphql"
declare -x GITHUB_HEAD_REF="feature/bump_checkout"
declare -x GITHUB_HEAD_REF="feature/dotnet"
declare -x GITHUB_JOB="dump-context"
declare -x GITHUB_OUTPUT="/home/runner/work/_temp/_runner_file_commands/set_output_f7481f61-e191-459b-802e-6e12e01ae996"
declare -x GITHUB_PATH="/home/runner/work/_temp/_runner_file_commands/add_path_f7481f61-e191-459b-802e-6e12e01ae996"
declare -x GITHUB_REF="refs/pull/105/merge"
declare -x GITHUB_REF_NAME="105/merge"
declare -x GITHUB_OUTPUT="/home/runner/work/_temp/_runner_file_commands/set_output_29da5d32-adcf-4601-a641-c766ff4cfdd8"
declare -x GITHUB_PATH="/home/runner/work/_temp/_runner_file_commands/add_path_29da5d32-adcf-4601-a641-c766ff4cfdd8"
declare -x GITHUB_REF="refs/pull/106/merge"
declare -x GITHUB_REF_NAME="106/merge"
declare -x GITHUB_REF_PROTECTED="false"
declare -x GITHUB_REF_TYPE="branch"
declare -x GITHUB_REPOSITORY="guitarrapc/githubactions-lab"
Expand All @@ -48,16 +48,16 @@ declare -x GITHUB_REPOSITORY_OWNER="guitarrapc"
declare -x GITHUB_REPOSITORY_OWNER_ID="3856350"
declare -x GITHUB_RETENTION_DAYS="90"
declare -x GITHUB_RUN_ATTEMPT="1"
declare -x GITHUB_RUN_ID="6264827388"
declare -x GITHUB_RUN_NUMBER="158"
declare -x GITHUB_RUN_ID="6265199543"
declare -x GITHUB_RUN_NUMBER="161"
declare -x GITHUB_SERVER_URL="https://github.com"
declare -x GITHUB_SHA="1ac594602b88550a9a6305a0e7ff25063b349906"
declare -x GITHUB_STATE="/home/runner/work/_temp/_runner_file_commands/save_state_f7481f61-e191-459b-802e-6e12e01ae996"
declare -x GITHUB_STEP_SUMMARY="/home/runner/work/_temp/_runner_file_commands/step_summary_f7481f61-e191-459b-802e-6e12e01ae996"
declare -x GITHUB_SHA="e5416c83e1d5234ac0caa5b5e89d3efb835b14cb"
declare -x GITHUB_STATE="/home/runner/work/_temp/_runner_file_commands/save_state_29da5d32-adcf-4601-a641-c766ff4cfdd8"
declare -x GITHUB_STEP_SUMMARY="/home/runner/work/_temp/_runner_file_commands/step_summary_29da5d32-adcf-4601-a641-c766ff4cfdd8"
declare -x GITHUB_TRIGGERING_ACTOR="guitarrapc"
declare -x GITHUB_WORKFLOW="auto dump context"
declare -x GITHUB_WORKFLOW_REF="guitarrapc/githubactions-lab/.github/workflows/auto_dump_context.yaml@refs/pull/105/merge"
declare -x GITHUB_WORKFLOW_SHA="1ac594602b88550a9a6305a0e7ff25063b349906"
declare -x GITHUB_WORKFLOW_REF="guitarrapc/githubactions-lab/.github/workflows/auto_dump_context.yaml@refs/pull/106/merge"
declare -x GITHUB_WORKFLOW_SHA="e5416c83e1d5234ac0caa5b5e89d3efb835b14cb"
declare -x GITHUB_WORKSPACE="/home/runner/work/githubactions-lab/githubactions-lab"
declare -x GOROOT_1_19_X64="/opt/hostedtoolcache/go/1.19.13/x64"
declare -x GOROOT_1_20_X64="/opt/hostedtoolcache/go/1.20.8/x64"
Expand All @@ -66,14 +66,14 @@ declare -x GRADLE_HOME="/usr/share/gradle-8.3"
declare -x HOME="/home/runner"
declare -x HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS="3650"
declare -x HOMEBREW_NO_AUTO_UPDATE="1"
declare -x INVOCATION_ID="3f477e32f33344de82dd676ab9f67554"
declare -x INVOCATION_ID="0e7f424d929248238c1b2216513ca497"
declare -x ImageOS="ubuntu22"
declare -x ImageVersion="20230917.1.0"
declare -x JAVA_HOME="/usr/lib/jvm/temurin-11-jdk-amd64"
declare -x JAVA_HOME_11_X64="/usr/lib/jvm/temurin-11-jdk-amd64"
declare -x JAVA_HOME_17_X64="/usr/lib/jvm/temurin-17-jdk-amd64"
declare -x JAVA_HOME_8_X64="/usr/lib/jvm/temurin-8-jdk-amd64"
declare -x JOURNAL_STREAM="8:17959"
declare -x JOURNAL_STREAM="8:17649"
declare -x LANG="C.UTF-8"
declare -x LEIN_HOME="/usr/local/lib/lein"
declare -x LEIN_JAR="/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar"
Expand All @@ -88,12 +88,12 @@ declare -x POWERSHELL_DISTRIBUTION_CHANNEL="GitHub-Actions-ubuntu22"
declare -x PWD="/home/runner/work/githubactions-lab/githubactions-lab"
declare -x RUNNER_ARCH="X64"
declare -x RUNNER_ENVIRONMENT="github-hosted"
declare -x RUNNER_NAME="GitHub Actions 14"
declare -x RUNNER_NAME="GitHub Actions 6"
declare -x RUNNER_OS="Linux"
declare -x RUNNER_PERFLOG="/home/runner/perflog"
declare -x RUNNER_TEMP="/home/runner/work/_temp"
declare -x RUNNER_TOOL_CACHE="/opt/hostedtoolcache"
declare -x RUNNER_TRACKING_ID="github_5680d1de-c2b4-484e-836f-f59b7d61fa7a"
declare -x RUNNER_TRACKING_ID="github_e40decbe-e3e7-4d23-9b09-166d929fd577"
declare -x RUNNER_USER="runner"
declare -x RUNNER_WORKSPACE="/home/runner/work/githubactions-lab"
declare -x SELENIUM_JAR_PATH="/usr/share/java/selenium-server.jar"
Expand All @@ -109,7 +109,7 @@ declare -x STATS_UE="true"
declare -x STATS_V3PS="true"
declare -x STATS_VMD="true"
declare -x SWIFT_PATH="/usr/share/swift/usr/bin"
declare -x SYSTEMD_EXEC_PID="569"
declare -x SYSTEMD_EXEC_PID="582"
declare -x USER="runner"
declare -x VCPKG_INSTALLATION_ROOT="/usr/local/share/vcpkg"
declare -x XDG_CONFIG_HOME="/home/runner/.config"
Expand Down
45 changes: 22 additions & 23 deletions contexts/export/pull_request_synchronize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ declare -x GITHUB_ACTOR="guitarrapc"
declare -x GITHUB_ACTOR_ID="3856350"
declare -x GITHUB_API_URL="https://api.github.com"
declare -x GITHUB_BASE_REF="main"
declare -x GITHUB_ENV="/home/runner/work/_temp/_runner_file_commands/set_env_89fd0d24-e469-4b0a-98c9-12feac83ec4b"
declare -x GITHUB_ENV="/home/runner/work/_temp/_runner_file_commands/set_env_cf4a1395-3e92-4275-9799-d8f99afbb5a2"
declare -x GITHUB_EVENT_NAME="pull_request"
declare -x GITHUB_EVENT_PATH="/home/runner/work/_temp/_github_workflow/event.json"
declare -x GITHUB_GRAPHQL_URL="https://api.github.com/graphql"
declare -x GITHUB_HEAD_REF="feature/filechange"
declare -x GITHUB_HEAD_REF="feature/dotnet"
declare -x GITHUB_JOB="dump-context"
declare -x GITHUB_OUTPUT="/home/runner/work/_temp/_runner_file_commands/set_output_89fd0d24-e469-4b0a-98c9-12feac83ec4b"
declare -x GITHUB_PATH="/home/runner/work/_temp/_runner_file_commands/add_path_89fd0d24-e469-4b0a-98c9-12feac83ec4b"
declare -x GITHUB_REF="refs/pull/102/merge"
declare -x GITHUB_REF_NAME="102/merge"
declare -x GITHUB_OUTPUT="/home/runner/work/_temp/_runner_file_commands/set_output_cf4a1395-3e92-4275-9799-d8f99afbb5a2"
declare -x GITHUB_PATH="/home/runner/work/_temp/_runner_file_commands/add_path_cf4a1395-3e92-4275-9799-d8f99afbb5a2"
declare -x GITHUB_REF="refs/pull/106/merge"
declare -x GITHUB_REF_NAME="106/merge"
declare -x GITHUB_REF_PROTECTED="false"
declare -x GITHUB_REF_TYPE="branch"
declare -x GITHUB_REPOSITORY="guitarrapc/githubactions-lab"
Expand All @@ -48,33 +48,32 @@ declare -x GITHUB_REPOSITORY_OWNER="guitarrapc"
declare -x GITHUB_REPOSITORY_OWNER_ID="3856350"
declare -x GITHUB_RETENTION_DAYS="90"
declare -x GITHUB_RUN_ATTEMPT="1"
declare -x GITHUB_RUN_ID="6040985011"
declare -x GITHUB_RUN_NUMBER="129"
declare -x GITHUB_RUN_ID="6265284683"
declare -x GITHUB_RUN_NUMBER="162"
declare -x GITHUB_SERVER_URL="https://github.com"
declare -x GITHUB_SHA="fa13b7ee001ee666c9618d2ac0061b54bad6ada9"
declare -x GITHUB_STATE="/home/runner/work/_temp/_runner_file_commands/save_state_89fd0d24-e469-4b0a-98c9-12feac83ec4b"
declare -x GITHUB_STEP_SUMMARY="/home/runner/work/_temp/_runner_file_commands/step_summary_89fd0d24-e469-4b0a-98c9-12feac83ec4b"
declare -x GITHUB_SHA="43ab433ef0d242614f46d8aee0b395aea96019d6"
declare -x GITHUB_STATE="/home/runner/work/_temp/_runner_file_commands/save_state_cf4a1395-3e92-4275-9799-d8f99afbb5a2"
declare -x GITHUB_STEP_SUMMARY="/home/runner/work/_temp/_runner_file_commands/step_summary_cf4a1395-3e92-4275-9799-d8f99afbb5a2"
declare -x GITHUB_TRIGGERING_ACTOR="guitarrapc"
declare -x GITHUB_WORKFLOW="auto dump context"
declare -x GITHUB_WORKFLOW_REF="guitarrapc/githubactions-lab/.github/workflows/auto_dump_context.yaml@refs/pull/102/merge"
declare -x GITHUB_WORKFLOW_SHA="fa13b7ee001ee666c9618d2ac0061b54bad6ada9"
declare -x GITHUB_WORKFLOW_REF="guitarrapc/githubactions-lab/.github/workflows/auto_dump_context.yaml@refs/pull/106/merge"
declare -x GITHUB_WORKFLOW_SHA="43ab433ef0d242614f46d8aee0b395aea96019d6"
declare -x GITHUB_WORKSPACE="/home/runner/work/githubactions-lab/githubactions-lab"
declare -x GOROOT_1_18_X64="/opt/hostedtoolcache/go/1.18.10/x64"
declare -x GOROOT_1_19_X64="/opt/hostedtoolcache/go/1.19.12/x64"
declare -x GOROOT_1_20_X64="/opt/hostedtoolcache/go/1.20.7/x64"
declare -x GOROOT_1_21_X64="/opt/hostedtoolcache/go/1.21.0/x64"
declare -x GOROOT_1_19_X64="/opt/hostedtoolcache/go/1.19.13/x64"
declare -x GOROOT_1_20_X64="/opt/hostedtoolcache/go/1.20.8/x64"
declare -x GOROOT_1_21_X64="/opt/hostedtoolcache/go/1.21.1/x64"
declare -x GRADLE_HOME="/usr/share/gradle-8.3"
declare -x HOME="/home/runner"
declare -x HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS="3650"
declare -x HOMEBREW_NO_AUTO_UPDATE="1"
declare -x INVOCATION_ID="733fa595219f4a78a0d999a207b6384c"
declare -x INVOCATION_ID="c6d4bfb3bc7d4037962bd3c591594cb8"
declare -x ImageOS="ubuntu22"
declare -x ImageVersion="20230821.1.0"
declare -x ImageVersion="20230917.1.0"
declare -x JAVA_HOME="/usr/lib/jvm/temurin-11-jdk-amd64"
declare -x JAVA_HOME_11_X64="/usr/lib/jvm/temurin-11-jdk-amd64"
declare -x JAVA_HOME_17_X64="/usr/lib/jvm/temurin-17-jdk-amd64"
declare -x JAVA_HOME_8_X64="/usr/lib/jvm/temurin-8-jdk-amd64"
declare -x JOURNAL_STREAM="8:17534"
declare -x JOURNAL_STREAM="8:17894"
declare -x LANG="C.UTF-8"
declare -x LEIN_HOME="/usr/local/lib/lein"
declare -x LEIN_JAR="/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar"
Expand All @@ -89,12 +88,12 @@ declare -x POWERSHELL_DISTRIBUTION_CHANNEL="GitHub-Actions-ubuntu22"
declare -x PWD="/home/runner/work/githubactions-lab/githubactions-lab"
declare -x RUNNER_ARCH="X64"
declare -x RUNNER_ENVIRONMENT="github-hosted"
declare -x RUNNER_NAME="GitHub Actions 31"
declare -x RUNNER_NAME="GitHub Actions 22"
declare -x RUNNER_OS="Linux"
declare -x RUNNER_PERFLOG="/home/runner/perflog"
declare -x RUNNER_TEMP="/home/runner/work/_temp"
declare -x RUNNER_TOOL_CACHE="/opt/hostedtoolcache"
declare -x RUNNER_TRACKING_ID="github_4eb116f2-0dce-40aa-8985-091af9f2ec93"
declare -x RUNNER_TRACKING_ID="github_91766fd1-5dd9-4ad7-9533-411a87447f9b"
declare -x RUNNER_USER="runner"
declare -x RUNNER_WORKSPACE="/home/runner/work/githubactions-lab"
declare -x SELENIUM_JAR_PATH="/usr/share/java/selenium-server.jar"
Expand All @@ -110,7 +109,7 @@ declare -x STATS_UE="true"
declare -x STATS_V3PS="true"
declare -x STATS_VMD="true"
declare -x SWIFT_PATH="/usr/share/swift/usr/bin"
declare -x SYSTEMD_EXEC_PID="661"
declare -x SYSTEMD_EXEC_PID="580"
declare -x USER="runner"
declare -x VCPKG_INSTALLATION_ROOT="/usr/local/share/vcpkg"
declare -x XDG_CONFIG_HOME="/home/runner/.config"
Expand Down
Loading