Bump gittools/actions from 3.1.1 to 3.1.3 #19505
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: Test | |
on: [push, pull_request] | |
jobs: | |
variables: | |
runs-on: ubuntu-latest | |
outputs: | |
branch: ${{ steps.variables.outputs.branch }} | |
version: ${{ steps.variables.outputs.version }} | |
repository_url: ${{ steps.variables.outputs.repository_url }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: '5.x.x' | |
- id: gitversion | |
uses: gittools/actions/gitversion/[email protected] | |
- name: Generate variables | |
id: variables | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: .github/scripts/variables.sh ${{ steps.gitversion.outputs.legacySemVerPadded }} | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby 2.7 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true | |
- name: jekyll build | |
run: bundle exec jekyll build | |
- name: Upload site | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-site | |
path: _site | |
spec: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby 2.7 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 14 | |
- uses: kamiazya/setup-graphviz@v1 | |
- name: Cache HTMLProofer | |
id: cache-htmlproofer | |
uses: actions/cache@v4 | |
with: | |
path: tmp/.htmlproofer | |
key: ${{ runner.os }}-htmlproofer | |
- name: Cache Jekyll | |
uses: actions/cache@v4 | |
with: | |
path: | | |
.jekyll-cache | |
.jekyll-metadata | |
key: ${{ runner.os }}-jekyll | |
- name: rspec | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: bundle exec rake | |
- name: codecov upload | |
run: bundle exec rake codecov:upload || echo 'Codecov upload failed' | |
rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true | |
- uses: haya14busa/action-cond@v1 | |
id: reporter | |
with: | |
cond: ${{ github.event_name == 'pull_request' }} | |
if_true: github-pr-review | |
if_false: github-check | |
- uses: reviewdog/action-rubocop@v2 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: ${{ steps.reporter.outputs.value }} | |
remark-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: haya14busa/action-cond@v1 | |
id: reporter | |
with: | |
cond: ${{ github.event_name == 'pull_request' }} | |
if_true: github-pr-review | |
if_false: github-check | |
- uses: reviewdog/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: ${{ steps.reporter.outputs.value }} | |
# deploy-dry-run: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: deploy dry-run | |
# run: | | |
# docker-compose run \ | |
# jekyll deploy \ | |
# --env=production \ | |
# --dry-run | |
# - name: Upload deploy | |
# uses: actions/upload-artifact@v4 | |
# if: always() | |
# with: | |
# name: deploy | |
# path: . |