Skip to content

Commit

Permalink
ci: Improve job names
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonAlling committed Jul 21, 2024
1 parent 6965a4f commit 085b7db
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
env:
CI: true
bootstrap:
name: Bootstrapped Userscript
name: Check Bootstrapped Userscript
runs-on: ubuntu-22.04
strategy:
matrix:
Expand All @@ -64,13 +64,15 @@ jobs:
npm ci
npm run build
userscripts:
name: Dependent Userscripts
name: Dependent: ${{ matrix.repository.humanReadableName }} (Node ${{ matrix.node-version }})
runs-on: ubuntu-22.04
strategy:
matrix:
repository:
- SimonAlling/better-sweclockers
- SimonAlling/example-userscript
- humanReadableName: Better SweClockers
ownerSlashName: SimonAlling/better-sweclockers
- humanReadableName: Example Userscript
ownerSlashName: SimonAlling/example-userscript
node-version: [16.20.2]
fail-fast: false
steps:
Expand All @@ -94,24 +96,24 @@ jobs:
- name: Clone userscript
uses: actions/checkout@v2
with:
repository: ${{ matrix.repository }}
path: dependent-userscripts/${{ matrix.repository }} # Must be relative to github.workspace, apparently.
repository: ${{ matrix.repository.ownerSlashName }}
path: dependent-userscripts/${{ matrix.repository.ownerSlashName }} # Must be relative to github.workspace, apparently.
fetch-depth: 1
- name: Move userscript
run: |
mkdir -p "${TARGET_DIR}"
mv --no-target-directory "${{ github.workspace }}/dependent-userscripts/${{ matrix.repository }}" "${TARGET_DIR}"
mv --no-target-directory "${{ github.workspace }}/dependent-userscripts/${{ matrix.repository.ownerSlashName }}" "${TARGET_DIR}"
env:
TARGET_DIR: ${{ runner.temp }}/${{ matrix.repository }}
TARGET_DIR: ${{ runner.temp }}/${{ matrix.repository.ownerSlashName }}
- name: Install userscript dependencies
working-directory: ${{ runner.temp }}/${{ matrix.repository }}
working-directory: ${{ runner.temp }}/${{ matrix.repository.ownerSlashName }}
run: |
npm ci
- name: Install Userscripter
working-directory: ${{ runner.temp }}/${{ matrix.repository }}
working-directory: ${{ runner.temp }}/${{ matrix.repository.ownerSlashName }}
run: |
npm install "${{ steps.pack.outputs.tarball }}"
- name: Build userscript
working-directory: ${{ runner.temp }}/${{ matrix.repository }}
working-directory: ${{ runner.temp }}/${{ matrix.repository.ownerSlashName }}
run: |
npm run build

0 comments on commit 085b7db

Please sign in to comment.