ScalaSteward: Update sbt-ci-release from 1.5.12 to 1.6.0 #999
Workflow file for this run
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
name: CI | |
on: | |
pull_request: | |
branches-ignore: | |
- gh-pages | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check_dependencies: | |
runs-on: ubuntu-latest | |
name: Check Dependencies | |
steps: | |
- name: PR Dependency Check | |
uses: gregsdennis/dependencies-action@1.3.3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
context_dump: | |
runs-on: ubuntu-latest | |
steps: | |
# - name: <DEBUG> Dump GitHub context | |
# env: | |
# GITHUB_CONTEXT: ${{ toJson(github) }} | |
# run: echo "$GITHUB_CONTEXT" | |
# shell: bash | |
- name: PR json | |
shell: bash | |
run: | | |
echo "{ | |
\"pr_number\": ${{ github.event.number }}, | |
\"head\": { | |
\"branch\": \"${{ github.head_ref }}\", | |
\"sha\": \"${{ github.event.after }}\" | |
}, | |
\"remote\": { | |
\"branch\": \"${{ github.base_ref }}\", | |
\"sha\": \"${{ github.event.pull_request.base.sha }}\" | |
}, | |
\"html\": \"${{ github.event.pull_request._links.html.href }}\", | |
\"additions\": ${{ github.event.pull_request.additions }}, | |
\"deletions\": ${{ github.event.pull_request.deletions }}, | |
\"changed_files\": ${{ github.event.pull_request.changed_files }}, | |
\"commits\": ${{ github.event.pull_request.commits }}, | |
\"created_at\": \"${{ github.event.pull_request.created_at }}\", | |
\"is_draft\": ${{ github.event.pull_request.draft }} | |
}" > pr_context.json | |
- name: Upload PR context | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "pr_context.json" | |
path: "pr_context.json" | |
if-no-files-found: error | |
retention-days: 1 | |
# BUILD, TEST & COVERAGE | |
build: | |
needs: [ "context_dump" ] | |
uses: ./.github/workflows/wc_build.yml | |
with: | |
matrix_filter: "[]" | |
secrets: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
# CHECK MDOC IS OK | |
check_mdoc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# BUILD MDOC, sbt should take the latest version | |
- name: Build the microsite 💻 | |
run: sbt +docs/mdoc | |
shell: bash | |
# CHECK SCALADOC IS OK | |
check_scaladoc: | |
needs: [ "check_mdoc" ] | |
uses: ./.github/workflows/wc_publishSite.yml | |
with: | |
publish: "no" | |
ci_ok: | |
needs: [ "build", "check_mdoc", "check_scaladoc" ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Requirement needed preventing unexpected auto-merge issues" | |
run: echo "Matrix end correctly" | |
shell: bash |