Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/satoshi-sh/skills-test-with-actions
My clone repository
https://github.com/satoshi-sh/skills-test-with-actions
Last synced: 4 days ago
JSON representation
My clone repository
- Host: GitHub
- URL: https://github.com/satoshi-sh/skills-test-with-actions
- Owner: Satoshi-Sh
- License: mit
- Created: 2023-10-28T14:29:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-28T14:36:36.000Z (about 1 year ago)
- Last Synced: 2024-11-15T15:45:42.134Z (2 months ago)
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Test with Actions
_Create workflows that enable you to use Continuous Integration (CI) for your projects._
## Step 3: Upload test reports
_The workflow has finished running! :sparkles:_
So what do we do when we need the work product of one job in another? We can use the built-in [artifact storage](https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts) to save artifacts created from one job to be used in another job within the same workflow.
To upload artifacts to the artifact storage, we can use an action built by GitHub: [`actions/upload-artifacts`](https://github.com/actions/upload-artifact).
### :keyboard: Activity: Upload test reports
1. Edit your workflow file.
1. Add a step to your `build` job that uses the `upload-artifacts` action.```yaml
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3- name: Run markdown lint
run: |
npm install remark-cli remark-preset-lint-consistent
npx remark . --use remark-preset-lint-consistent --frail- uses: actions/upload-artifact@v3
with:
name: remark-lint-report
path: public/
```1. Commit your change to this branch.
1. Wait about 20 seconds then refresh this page (the one you're following instructions from). [GitHub Actions](https://docs.github.com/en/actions) will automatically update to the next step.Similar to the upload action to send artifacts to the storage, you can use another action built by GitHub to download these previously uploaded artifacts from the `build` job: [`actions/download-artifact`](https://github.com/actions/download-artifact). To save you time, we'll skip that step for this course.
---
Get help: [Post in our discussion board](https://github.com/orgs/skills/discussions/categories/test-with-actions) • [Review the GitHub status page](https://www.githubstatus.com/)
© 2023 GitHub • [Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/code_of_conduct.md) • [MIT License](https://gh.io/mit)