Skip to content

Commit

Permalink
[devops][enhancement]: move example out of tests and into the always …
Browse files Browse the repository at this point in the history
…ran ci build. (#3)

[devops][enhancement]: move example out of tests and into the always ran ci build. (#3)
  • Loading branch information
leblancmeneses authored May 29, 2024
1 parent a39dfc4 commit 8cf59c9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 26 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@ jobs:
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "build" targets have been requested
# - run: npx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"

- name: debug
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
GITHUB_INPUTS: ${{ toJson(inputs) }}
shell: bash
run: |
echo "Look at github outputs in prior command."
echo "$GITHUB_INPUTS"
echo "$GITHUB_CONTEXT"
printenv
# Cache node_modules
- uses: actions/setup-node@v4
with:
Expand All @@ -57,6 +46,21 @@ jobs:
- name: commit changes for npx nx run-many -t build
run: git diff --exit-code -- ./dist

- name: example in README.md task
id: version-autopilot
uses: ./dist/apps/version-autopilot
with:
major: 0
minor: 0
shift: 50 # remove if this is a brand new application. Otherwise, use this to match your current version.

- name: example in README.md output
run: |
echo "github.run_number: ${{ github.run_number }}"
echo "version_autopilot_string_recommended: ${{ steps.version-autopilot.outputs.version_autopilot_string_recommended }}"
echo "version_autopilot_string: ${{ steps.version-autopilot.outputs.version_autopilot_string }}"
echo "version_autopilot_code: ${{ steps.version-autopilot.outputs.version_autopilot_code }}"
version-autopilot-tests:
if: |
!failure() && !cancelled() && github.event_name == 'pull_request'
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/tests.version-autopilot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,6 @@ jobs:

- run: npm ci

- name: example in README.md task
id: version-autopilot
uses: ./dist/apps/version-autopilot
with:
major: 0
minor: 0
shift: 50 # remove if this is a brand new application. Otherwise, use this to match your current version.

- name: example in README.md output
run: |
echo "github.run_number: ${{ github.run_number }}"
echo "version_autopilot_string_recommended: ${{ steps.version-autopilot.outputs.version_autopilot_string_recommended }}"
echo "version_autopilot_string: ${{ steps.version-autopilot.outputs.version_autopilot_string }}"
echo "version_autopilot_code: ${{ steps.version-autopilot.outputs.version_autopilot_code }}"
- name: va_0_0_0 start at zero test
id: va_0_0_0
env:
Expand Down

0 comments on commit 8cf59c9

Please sign in to comment.