Skip to content

Commit

Permalink
Testing a workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner-ricks committed Nov 7, 2024
1 parent a7d2ec7 commit 72c0f1e
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 8 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/.pre.yml → .github/stages/.pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ on:
workflow_call:

jobs:

printenv:
name: Print Environment
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: print
run: |
echo "Repository name: $GITHUB_REPOSITORY"
echo "Commit sha: $GITHUB_SHA"
echo "Branch name: $GITHUB_REF"
echo "Workflow name: $GITHUB_WORKFLOW"
echo "Workflow Initiator: $GITHUB_ACTOR"
echo "Github workspace: $GITHUB_WORKSPACE"
echo "Cache list: $(gh cache list)"
shell: bash

check:
name: Check Cache
runs-on: ubuntu-latest
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ on:
jobs:
call-pre:
name: .Pre
uses: ./.github/workflows/.pre.yml
uses: ./.github/stages/.pre.yml

call-lint:
name: Lint
uses: ./.github/workflows/lint.yml
uses: ./.github/stages/lint.yml
needs: call-pre

call-test:
name: Test
if: ${{ always() }}
uses: ./.github/workflows/test.yml
uses: ./.github/stages/test.yml
needs: call-lint

call-codeql:
name: CodeQL
if: ${{ always() }}
uses: ./.github/workflows/codeql.yml
uses: ./.github/stages/codeql.yml
needs: call-lint

8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ on:
jobs:
call-pre:
name: .Pre
uses: ./.github/workflows/.pre.yml
uses: ./.github/stages/.pre.yml

call-lint:
name: Lint
uses: ./.github/workflows/lint.yml
uses: ./.github/stages/lint.yml
needs: call-pre

call-test:
name: Test
if: ${{ always() }}
uses: ./.github/workflows/test.yml
uses: ./.github/stages/test.yml
needs: call-lint

call-codeql:
name: CodeQL
if: ${{ always() }}
uses: ./.github/workflows/codeql.yml
uses: ./.github/stages/codeql.yml
needs: call-lint

0 comments on commit 72c0f1e

Please sign in to comment.