Skip to content

Commit

Permalink
Add actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
werebus committed Jan 10, 2025
1 parent 0ef0d12 commit 1d88c79
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: setup
description: Setup the repository
runs:
using: composite
steps:
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: yarn
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ci
on:
push:
branches:
- main
- actions
pull_request:
branches:
- main
- actions

jobs:
rspec:
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:10.4
env:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: true
ports:
- 3306:3306
env:
RAILS_ENV: test
DATABASE_URL: mysql2://[email protected]:3306/incidents_test
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: bin/setup
- run: bundle exec rspec

0 comments on commit 1d88c79

Please sign in to comment.