Skip to content

Commit b5d1e12

Browse files
committed
Moving link checker to internal.yml
1 parent 44bb8f0 commit b5d1e12

2 files changed

Lines changed: 40 additions & 7 deletions

File tree

.github/workflows/internal.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Test internal links
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
push:
9+
branches:
10+
- '**'
11+
- '!main'
12+
13+
jobs: # A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
build: # This workflow contains a single job called "build"
15+
runs-on: ubuntu-latest # The type of runner that the job will run on
16+
env:
17+
BUNDLE_WITH: test jekyll_plugins
18+
SITE_ID: 'api' # which iiif site this is
19+
steps: # Steps represent a sequence of tasks that will be executed as part of the job
20+
- name: Checkout # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21+
uses: actions/checkout@v6
22+
- name: Export BRANCH_NAME # store branch name in $BRANCH_NAME
23+
run: echo BRANCH_NAME=`git rev-parse --abbrev-ref HEAD` >> $GITHUB_ENV
24+
- name: Setup ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
bundler-cache: true
28+
- name: Install
29+
run: gem install bundler && bundle
30+
- name: Build preview site
31+
run: bundle exec rake build:preview
32+
- name: Test html
33+
run: bundle exec rake test:html
34+
- name: Test internal links
35+
run: bundle exec rake test:links:internal
36+
- name: Test *iiif.io* links
37+
run: bundle exec rake test:links:iiif
38+
- name: Spec tests
39+
run: bundle exec rake api:spec

.github/workflows/preview.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs: # A workflow run is made up of one or more jobs that can run sequentially
1919
SITE_ID: 'api' # which iiif site this is
2020
steps: # Steps represent a sequence of tasks that will be executed as part of the job
2121
- name: Checkout # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v6
2323
- name: Export BRANCH_NAME # store branch name in $BRANCH_NAME
2424
run: echo BRANCH_NAME=`git rev-parse --abbrev-ref HEAD` >> $GITHUB_ENV
2525
- name: Setup ruby
@@ -32,12 +32,6 @@ jobs: # A workflow run is made up of one or more jobs that can run sequentially
3232
run: bundle exec rake build:preview
3333
- name: Test html
3434
run: bundle exec rake test:html
35-
# - name: Test internal links
36-
# run: bundle exec rake test:links:internal
37-
# - name: Test *iiif.io* links
38-
# run: bundle exec rake test:links:iiif
39-
- name: Spec tests
40-
run: bundle exec rake api:spec
4135
- name: Create GitHub deployment # Deploy to Preview site
4236
uses: glenrobson/deployments@v0.4.2
4337
id: deployment

0 commit comments

Comments
 (0)