Try for some output, with a checkout. Daring! #56
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
--- | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, reopened] | |
push: | |
branches: [main, ci/**] | |
jobs: | |
some-output: | |
runs-on: | |
- codebuild-spacktainers-${{ github.run_id }}-${{ github.run_attempt }} | |
name: Quick test with some output | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Do something | |
run: |- | |
echo "Hello world" | |
pwd | |
ls | |
ls /opt | |
ls /opt/spack/* | |
echo "All done" | |
- name: Write to file | |
run: |- | |
echo "Hello world" > /tmp/output.log | |
pwd >> /tmp/output.log | |
ls >> /tmp/output.log | |
ls /opt >> /tmp/output.log | |
ls /opt/spack/* >> /tmp/output.log | |
echo "All done" >> /tmp/output.log | |
- name: Archive artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: output-log | |
path: /tmp/output.log |