Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed Jan 8, 2024
1 parent 521b08e commit fbb3cd7
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/decidim_ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: "[CI] Decidim"
on: [push]
on:
push:
branches:
- main
pull_request:

env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.19.1

jobs:
tests:
Expand Down Expand Up @@ -32,14 +37,18 @@ jobs:
with:
fetch-depth: 1

- uses: nanasess/setup-chromedriver@v2
with:
chromedriver-version: 119.0.6045.105

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true

- uses: nanasess/setup-chromedriver@v2
with:
chromedriver-version: 119.0.6045.105

- uses: actions/setup-node@master
with:
node-version: ${{ env.NODE_VERSION }}

- name: Setup & create Database
run: |
Expand All @@ -50,7 +59,9 @@ jobs:
DATABASE_PASSWORD: postgres

- name: Precompile assets
run: bundle exec rake assets:precompile
run: |
npm ci
bundle exec rake assets:precompile
env:
RAILS_ENV: test

Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint

on:
push:
branches:
- main
pull_request:

env:
RUBY_VERSION: 3.0.6
NODE_VERSION: 16.19.1

jobs:
lint:
name: Lint code
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true

- uses: actions/setup-node@master
with:
node-version: ${{ env.NODE_VERSION }}

- run: bundle exec rubocop -P
name: Lint Ruby files

- run: bundle exec mdl *.md
name: Lint Markdown files

0 comments on commit fbb3cd7

Please sign in to comment.