Skip to content

ci: add lint to CI

ci: add lint to CI #2

name: "[CI] AdditionalAuthorizationHandler"

Check failure on line 1 in .github/workflows/ci_additional_authorization_handler.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci_additional_authorization_handler.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: main
on:
push:
branches:
- develop
- release/*
- "*-stable"
pull_request:
branches-ignore:
- "chore/l10n*"
paths:
- "*"
- ".github/**"
env:
CI: "true"
RUBY_VERSION: 3.2.2
NODE_VERSION: 18.17.1
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build_app:
uses: ./.github/workflows/build_app.yml
secrets: inherit
name: Build test application
lint:
name: Lint code
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: rokroskar/[email protected]
if: "github.ref != 'refs/heads/develop'"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: OpenSourcePolitics/lint-action@master
with:
ruby_version: ${{ env.RUBY_VERSION }}
node_version: ${{ env.NODE_VERSION }}
main:
strategy:
fail-fast: false
matrix:
test:
- command: bundle exec parallel_test --type rspec --pattern spec/ --exclude-pattern spec/system
name: "Unit tests"
- command: bundle exec parallel_test --type rspec --pattern spec/system --exclude-pattern spec/system/admin
name: "System tests"
needs: build_app
name: ${{ matrix.test.name }}
uses: ./.github/workflows/test_app.yml
secrets: inherit
with:
working-directory: "decidim-module-addtional_authorization_handler"
test_command: ${{ matrix.test.command }}