Skip to content

fix: Explicit hash for ruby < 3.0 #189

fix: Explicit hash for ruby < 3.0

fix: Explicit hash for ruby < 3.0 #189

Workflow file for this run

name: "CI/CD"
on: [push]
env:
CI: "true"
CODECOV: "true"
RUBY_VERSION: 3.1.1
NODE_VERSION: 16.9.1
WEBPACKER_RUNTIME_COMPILE: "false"
RAILS_ENV: test
jobs:
lint:
name: Lint code
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: rokroskar/[email protected]
if: "github.ref != 'refs/heads/develop'"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: OpenSourcePolitics/lint-action@master
tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 30
services:
postgres:
image: postgres:11
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
env:
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: localhost
matrix:

Check failure on line 42 in .github/workflows/ci_cleaner.yml

View workflow run for this annotation

GitHub Actions / CI/CD

Invalid workflow file

The workflow is not valid. .github/workflows/ci_cleaner.yml (Line: 42, Col: 5): Unexpected value 'matrix'
include:
- decidim-version: '0.28.0'
ruby-version: '3.1.1'
node-version: '18.15.0'
gemfile: 'Gemfile'
steps:
- uses: rokroskar/[email protected]
if: "github.ref != 'refs/heads/develop'"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: OpenSourcePolitics/rspec-action@master
env:
DECIDIM_VERSION: ${{ matrix.decidim-version }}
RUBY_VERSION: ${{ matrix.ruby-version }}
NODE_VERSION: ${{ matrix.node-version }}
WEBPACKER_RUNTIME_COMPILE: ${{ matrix.webpacker-runtime-compile }}
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
with:
command: "bundle exec rspec --exclude-pattern 'spec/system/**/*_spec.rb'"
system_tests:
name: System tests
runs-on: ubuntu-latest
timeout-minutes: 30
services:
postgres:
image: postgres:11
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
env:
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: localhost
steps:
- uses: rokroskar/[email protected]
if: "github.ref != 'refs/heads/develop'"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: OpenSourcePolitics/rspec-action@master
with:
command: "bundle exec rspec spec/system"
publish:
if: "github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release' )"
needs: [tests, system_tests, lint]
runs-on: ubuntu-latest
steps:
- uses: OpenSourcePolitics/publish-gem-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}