From 7af894fc26b00f82bbe2214efe78fbc511c8d7bb Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Wed, 27 Dec 2023 08:53:11 +0100 Subject: [PATCH] Update blank.yml --- .github/workflows/blank.yml | 47 ++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 7f201f1..f82fe5c 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -6,6 +6,51 @@ env: jobs: view-contexts: runs-on: ubuntu-latest - steps: + steps: + - name: Dump GitHub context + run: echo '${{ toJSON(github) }}' + - name: Dump job context + run: echo '${{ toJSON(job) }}' + - name: Dump steps context + run: echo '${{ toJSON(steps) }}' + - name: Dump runner context + run: echo '${{ toJSON(runner) }}' + - name: Dump strategy context + run: echo '${{ toJSON(strategy) }}' + - name: Dump matrix context + run: echo '${{ toJSON(matrix) }}' + - name: default environments in https://docs.github.com/en/actions/learn-github-actions/environment-variables + run: echo "CI=${CI};GITHUB_EVENT_NAME=${GITHUB_EVENT_NAME}; ${GITHUB_ACTOR}~=${GITHUB_REPOSITORY_OWNER}; GITHUB_REPOSITORY=${GITHUB_REPOSITORY}" + - name: self-defined environments + run: echo "GITHUB_REPOSITORY_NAME=${GITHUB_REPOSITORY_NAME}" + view-prebuilt-version: + strategy: + matrix: + os: [macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@main + - name: docker pre-install + run: docker --version + if: ${{ matrix.os != 'macos-latest' }} + - name: mysql pre-install + run: mysql -V + if: ${{ matrix.os != 'macos-latest' }} + - name: java pre-install + run: java -version + - name: python pre-install + run: python --version + - name: node pre-built + run: node --version + - name: go pre-built + run: go version + - run: echo $(go env GOOS) + shell: bash + - uses: actions/setup-go@main + with: + go-version: 'stable' + # When no go versions are set in workflow file, the default version in GitHub hosted runner is used. + - name: after setup Golang + run: go version - name: after setup Golang run: go version