Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ubuntu repository for markdownlint #468

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/actions/ci-checks/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,7 @@ runs:
run: ./scripts/publish.sh --dry-run
shell: bash
- if: ${{ contains(fromJSON(inputs.checks), 'markdown') }}
# TODO: Keep only the last command once ubuntu-latest is 24.04.
run: |
set -x
curl -Os http://ftp.de.debian.org/debian/pool/main/r/ruby-mdl/markdownlint_0.13.0-4_all.deb
sudo apt install ruby-kramdown-parser-gfm ruby-mixlib-{cli,config,shellout}
sudo dpkg -i markdownlint_0.13.0-4_all.deb
rm markdownlint_0.13.0-4_all.deb
./scripts/wrapper.sh mdl -g -s markdownlint.rb .
run: ./scripts/wrapper.sh mdl -g -s markdownlint.rb .
shell: bash
- if: ${{ contains(fromJSON(inputs.checks), 'taplo') }}
run: ./scripts/ci-taplo.sh
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ permissions: {}

jobs:
checks:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Compute the checks for ${{ github.event_name }}
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
outputs:
checks: ${{ steps.checks.outputs.checks }}
cache:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: checks
steps:
- uses: actions/checkout@v4
Expand All @@ -74,7 +74,7 @@ jobs:
- if: steps.cache.outputs.cache-hit != 'true'
run: rm -rf target && cargo xtask help
matrix:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: [checks, cache] # The cache is used by the checks.
strategy:
fail-fast: false
Expand All @@ -89,7 +89,7 @@ jobs:
checks: "[\"${{ matrix.check }}\"]"
token: ${{ secrets.GITHUB_TOKEN }}
ubuntu:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: matrix
steps:
- run: true