-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: artifacts upload support (#41)
* feat: added artifacts upload support * feat: added artifacts upload support * ci: added artifact integration test * ci: added artifact integration test * chore: update README.md * ci: added artifact integration test with multiple folders * ci: added artifact integration test with multiple folders * ci: added artifact integration test with multiple folders * ci: added artifact integration test with multiple folders * ci: added artifact integration test with multiple folders * ci: added artifact integration test with multiple folders * chore: bump version to 0.9.0 * ci: removed ls command i ntest * ci: added artifacts name support * ci: rename artifacts variables names to use dash syntax * Update README.md Co-authored-by: James Henry <[email protected]> * Update README.md Co-authored-by: James Henry <[email protected]> Co-authored-by: James Henry <[email protected]> Co-authored-by: Miroslav Jonaš <[email protected]>
- Loading branch information
1 parent
681bab0
commit 731048d
Showing
5 changed files
with
112 additions
and
2 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
.github/workflows/ci-integration-test-artifacts-multiple-folders.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: CI - integration test artifacts multiple folders | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
main: | ||
name: Nx Cloud - Main Job | ||
uses: ./.github/workflows/nx-cloud-main.yml | ||
with: | ||
working-directory: ./integration-tests/npm | ||
parallel-commands-on-agents: | | ||
npx nx run react-app:test --ci --coverage | ||
npx nx run react-app:build | ||
artifacts-path: | | ||
./integration-tests/npm/dist/ | ||
./integration-tests/npm/coverage/ | ||
artifacts-name: custom-artifacts-name | ||
|
||
agents: | ||
name: Nx Cloud - Agents | ||
uses: ./.github/workflows/nx-cloud-agents.yml | ||
with: | ||
working-directory: ./integration-tests/npm | ||
number-of-agents: 1 | ||
|
||
check-artifact: | ||
needs: main | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Downloading artifacts" | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: custom-artifacts-name | ||
- run: node -e "if(fs.existsSync('dist/apps/react-app') && fs.existsSync('coverage/apps/react-app')) console.log('Artifacts are here...'); else { throw new Error('Artifacts do not exist!');}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CI - integration test artifacts | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
main: | ||
name: Nx Cloud - Main Job | ||
uses: ./.github/workflows/nx-cloud-main.yml | ||
with: | ||
working-directory: ./integration-tests/npm | ||
parallel-commands-on-agents: | | ||
npx nx run react-app:build | ||
artifacts-path: ./integration-tests/npm/dist/ | ||
|
||
agents: | ||
name: Nx Cloud - Agents | ||
uses: ./.github/workflows/nx-cloud-agents.yml | ||
with: | ||
working-directory: ./integration-tests/npm | ||
number-of-agents: 1 | ||
|
||
check-artifact: | ||
needs: main | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Downloading artifacts" | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: nx-main-artifacts | ||
path: dist | ||
- run: node -e "if(fs.existsSync('dist/apps/react-app')) console.log('Artifacts are here...'); else { throw new Error('Artifacts do not exist!');}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"private": true, | ||
"version": "0.8.1", | ||
"version": "0.9.0", | ||
"description": "This package.json is here purely to control the version of the Action, in combination with https://github.com/JamesHenry/publish-shell-action" | ||
} |