Skip to content

Commit

Permalink
Add actions setup (#656)
Browse files Browse the repository at this point in the history
* Add actions setup

* Remove Travis and CC setups
  • Loading branch information
werebus authored Oct 16, 2024
1 parent ff08766 commit 178c723
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 73 deletions.
38 changes: 0 additions & 38 deletions .codeclimate.yml

This file was deleted.

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
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main

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/jobapps_test
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: bin/setup
- run: bundle exec rspec
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

0 comments on commit 178c723

Please sign in to comment.