Catch up with main
8 files+52−280/8 viewed
| 1 | − | on: issue.exploded | |
| 2 | − | do: [assign_agent] |
| 1 | − | name: Label on every update | |
| 2 | − | on: [issue.updated, issue.opened] | |
| 3 | − | if: | |
| 4 | − | labels: automation-test | |
| 5 | − | do: | |
| 6 | − | - label: touched-again | |
| 7 | − | - comment: "Touched by {{automation}} after {{event}}." |
| 1 | − | on: manual | |
| 2 | − | do: | |
| 3 | − | - comment: "Run by hand on #{{number}} ({{title}})." |
| 1 | − | name: Triage test issues | |
| 2 | − | on: issue.opened | |
| 3 | − | if: | |
| 4 | − | labels: automation-test | |
| 5 | − | do: | |
| 6 | − | - comment: "Thanks, {{actor}}. This automation saw #{{number}} ({{title}}) and labelled it." | |
| 7 | − | - label: triaged | |
| 8 | − | - notify: | |
| 9 | − | url: https://httpbin.org/post | |
| 10 | − | text: "{{repo}}#{{number}} was triaged: {{url}}" |
| 1 | + | name: After build | |
| 2 | + | on: | |
| 3 | + | workflow_run: | |
| 4 | + | workflows: [Build] | |
| 5 | + | types: [completed] | |
| 6 | + | jobs: | |
| 7 | + | report: | |
| 8 | + | runs-on: ubuntu-latest | |
| 9 | + | steps: | |
| 10 | + | - run: echo "Build ${{ github.event.workflow_run.run_number }} finished with ${{ github.event.workflow_run.conclusion }} on ${{ github.event.workflow_run.head_branch }}" |
| 1 | + | name: Build | |
| 2 | + | on: | |
| 3 | + | push: | |
| 4 | + | branches: [main] | |
| 5 | + | workflow_dispatch: | |
| 6 | + | jobs: | |
| 7 | + | build: | |
| 8 | + | runs-on: ubuntu-latest | |
| 9 | + | steps: | |
| 10 | + | - uses: actions/checkout@v7 | |
| 11 | + | - name: Restore the cache | |
| 12 | + | id: cache | |
| 13 | + | uses: actions/cache@v6 | |
| 14 | + | with: | |
| 15 | + | path: .deps | |
| 16 | + | key: deps-${{ hashFiles('math.js') }} | |
| 17 | + | restore-keys: deps- | |
| 18 | + | - name: Fill the cache on a miss | |
| 19 | + | if: steps.cache.outputs.cache-hit != 'true' | |
| 20 | + | run: mkdir -p .deps && date > .deps/made-at && echo "cache was cold" | |
| 21 | + | - run: echo "cache hit=${{ steps.cache.outputs.cache-hit }}; deps made at $(cat .deps/made-at)" | |
| 22 | + | - run: mkdir -p dist && cp math.js dist/ && echo "built $(date)" > dist/BUILD | |
| 23 | + | - uses: actions/upload-artifact@v7 | |
| 24 | + | with: | |
| 25 | + | name: dist | |
| 26 | + | path: dist/ | |
| 27 | + | verify: | |
| 28 | + | needs: build | |
| 29 | + | runs-on: ubuntu-latest | |
| 30 | + | steps: | |
| 31 | + | - uses: actions/download-artifact@v8 | |
| 32 | + | with: | |
| 33 | + | name: dist | |
| 34 | + | path: out | |
| 35 | + | - run: ls -la out && cat out/BUILD && node -e "console.log(require('./out/math.js').add(2, 2))" |
| 1 | 1 | name: Checks | |
| 2 | 2 | on: | |
| 3 | 3 | pull_request: | |
| 4 | + | merge_group: | |
| 4 | 5 | push: | |
| 5 | 6 | branches: [main] | |
| 6 | 7 | jobs: | |
| 7 | 8 | test: | |
| 8 | 9 | runs-on: ubuntu-latest | |
| 9 | 10 | steps: | |
| 10 | − | - uses: actions/checkout@v4 | |
| 11 | + | - uses: actions/checkout@v7 | |
| 11 | 12 | - name: Unit tests | |
| 12 | 13 | run: node test.js | |
| 13 | 14 | - name: House style |
| 16 | 16 | version: ${{ steps.version.outputs.value }} | |
| 17 | 17 | matrix: ${{ steps.matrix.outputs.json }} | |
| 18 | 18 | steps: | |
| 19 | − | - uses: actions/checkout@v4 | |
| 19 | + | - uses: actions/checkout@v7 | |
| 20 | 20 | - id: version | |
| 21 | 21 | run: echo "value=1.2.$GITHUB_RUN_NUMBER" >> "$GITHUB_OUTPUT" | |
| 22 | 22 | - id: matrix | |
| 23 | − | run: echo 'json={"node":[20,22]}' >> "$GITHUB_OUTPUT" | |
| 23 | + | run: echo 'json={"node":[24,26]}' >> "$GITHUB_OUTPUT" | |
| 24 | 24 | - name: Show the context | |
| 25 | 25 | run: | | |
| 26 | 26 | echo "::group::Context" | |
| ⋯ | |||
| 37 | 37 | strategy: | |
| 38 | 38 | matrix: ${{ fromJSON(needs.setup.outputs.matrix) }} | |
| 39 | 39 | steps: | |
| 40 | − | - uses: actions/checkout@v4 | |
| 41 | − | - uses: actions/setup-node@v4 | |
| 40 | + | - uses: actions/checkout@v7 | |
| 41 | + | - uses: actions/setup-node@v7 | |
| 42 | 42 | with: | |
| 43 | 43 | node-version: ${{ matrix.node }} | |
| 44 | 44 | - run: node --version | |
| ⋯ | |||
| 49 | 49 | continue-on-error: true | |
| 50 | 50 | run: exit 3 | |
| 51 | 51 | - name: Only on Node 22 | |
| 52 | − | if: matrix.node == 22 | |
| 52 | + | if: matrix.node == 24 | |
| 53 | 53 | run: echo "hash=${{ hashFiles('**/*.yml') }}" | |
| 54 | 54 | report: | |
| 55 | 55 | needs: [setup, test] | |
Comments
Sign in to comment.