chore(deps): bump acts-as-taggable-on from 69e6bff
to ff8360e
#1433
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: Run tests | |
concurrency: | |
group: test-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- "*" | |
tags: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
mariadb: | |
image: mariadb:10 | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: 1 | |
ports: | |
- 3306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 | |
redis: | |
image: redis:alpine | |
ports: | |
- 6379:6379 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.4.1 | |
bundler-cache: true | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: npm | |
- name: Install ImageMagick | |
run: sudo apt-get install -y imagemagick | |
- name: Install JavaScript dependencies | |
run: | | |
npm install -g yarn | |
yarn --frozen-lockfile | |
- name: Setup database | |
run: | | |
cp config/database.yml.mysql config/database.yml | |
mysql -u root -h 127.0.0.1 -e 'create database imgshr_test;' | |
- name: Test database migrations | |
env: | |
RAILS_ENV: test | |
TZ: Europe/Berlin | |
run: | | |
bundle exec rails db:migrate | |
- name: Test webpack bundling | |
run: | | |
bundle exec ./bin/webpack | |
- name: Run Rails tests | |
env: | |
RAILS_ENV: test | |
TZ: Europe/Berlin | |
run: | | |
bundle exec rails test | |
- name: Lint JavaScript code | |
run: | | |
yarn lint |