Bumps the github-actions-dependencies group with 3 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [actions/download-artifact](https://github.com/actions/download-artifact) and [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action). Updates `actions/checkout` from 4 to 5 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) Updates `actions/download-artifact` from 4 to 5 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v4...v5) Updates `slackapi/slack-github-action` from 2.1.0 to 2.1.1 - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Commits](https://github.com/slackapi/slack-github-action/compare/v2.1.0...v2.1.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies - dependency-name: actions/download-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies - dependency-name: slackapi/slack-github-action dependency-version: 2.1.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
85 lines
1.9 KiB
YAML
85 lines
1.9 KiB
YAML
name: CI
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
ruby-ci:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
runs-on: [ubicloud-standard-8, ubicloud-standard-8-arm]
|
|
name: Ruby CI - ${{matrix.runs-on}}
|
|
runs-on: ${{matrix.runs-on}}
|
|
timeout-minutes: 25
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Set up Clover
|
|
uses: ./.github/actions/setup-clover
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: "package.json"
|
|
|
|
- name: Install node packages
|
|
run: npm ci
|
|
|
|
- name: Run erb-formatter
|
|
run: bundle exec rake linter:erb_formatter
|
|
|
|
- name: Cache rubocop
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: /home/runner/.cache/rubocop_cache
|
|
key: ${{ matrix.runs-on }}-rubocop-cache-${{ hashFiles('Gemfile.lock', '.rubocop.yml') }}
|
|
|
|
- name: Run rubocop
|
|
run: bundle exec rake linter:rubocop
|
|
|
|
- name: Run brakeman
|
|
run: bundle exec rake linter:brakeman
|
|
|
|
- name: Run linter:openapi
|
|
run: bundle exec rake linter:openapi
|
|
|
|
- name: Run annotate
|
|
run: bundle exec rake annotate
|
|
|
|
- name: Refresh sequel caches
|
|
run: bundle exec rake refresh_sequel_caches
|
|
|
|
- name: Check that source code formatters and annotations make no changes
|
|
run: git diff --stat --exit-code
|
|
|
|
- name: Check production puma loads
|
|
env:
|
|
CLOVER_DATABASE_URL: postgres:///clover_test?user=clover
|
|
run: ruby bin/production_check
|
|
|
|
- name: Run controlplane tests
|
|
run: bundle exec rake
|
|
|
|
- name: Run dataplane tests
|
|
run: bundle exec rake rhizome_spec
|
|
|
|
- name: Run CSI tests
|
|
run: rake csi_spec
|
|
|
|
- name: Archive code coverage results
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: code-coverage-report-${{ matrix.runs-on }}
|
|
path: coverage/
|