Compare commits

...

23 commits

Author SHA1 Message Date
482ab7c877
Try with cache
All checks were successful
Ruby CI / test (pull_request) Successful in 32s
2024-04-25 23:31:08 -04:00
eeeaf4b238
Merge branch 'main' into gitea-actions
Some checks failed
Ruby CI / test (pull_request) Failing after 13m20s
2024-04-25 23:01:01 -04:00
fcbbc0d0e8
Still need node
All checks were successful
Ruby CI / test (pull_request) Successful in 29s
2024-04-23 20:57:59 -04:00
2edcc17a7c
Give up on setup-ruby action
Some checks failed
Ruby CI / test (pull_request) Failing after 18s
2024-04-23 20:55:06 -04:00
2dbeb6c45c
Merge branch 'main' into gitea-actions
Some checks failed
Ruby CI / test (pull_request) Failing after 35s
2024-04-23 20:42:03 -04:00
c9819bfa93
Install a newer node version
Some checks failed
Ruby CI / test (pull_request) Failing after 30s
2024-03-20 21:20:53 -04:00
fa3db2e586
Add git
Some checks failed
Ruby CI / test (pull_request) Failing after 18s
2024-03-20 21:16:20 -04:00
3ba6711cfe
Skip interactive
Some checks failed
Ruby CI / test (pull_request) Failing after 36s
2024-03-20 21:14:33 -04:00
804d074c0b
Update packages before install
Some checks failed
Ruby CI / test (pull_request) Failing after 8s
2024-03-20 21:12:22 -04:00
e19b71652d
( ͡° ͜ʖ ͡°)
Some checks failed
Ruby CI / test (pull_request) Failing after 7s
2024-03-20 21:11:10 -04:00
8bc962a6fe
Install node, new base image run
Some checks failed
Ruby CI / test (pull_request) Failing after 23s
2024-03-20 21:09:14 -04:00
fc68fb41da
( ͡° ͜ʖ ͡°)
Some checks failed
Ruby CI / test (pull_request) Failing after 7s
2024-03-20 19:53:24 -04:00
80906614d5
Runs on new ruby runner
Some checks failed
Ruby CI / test (pull_request) Has been cancelled
2024-03-20 19:46:14 -04:00
c69301eb6c
install bundle
Some checks failed
Ruby CI / test (pull_request) Failing after 5s
2024-03-20 19:40:53 -04:00
039583ac5c
Remove setup ruby
Some checks failed
Ruby CI / test (pull_request) Failing after 6s
2024-03-20 19:39:55 -04:00
5054a28ed8
( ͡° ͜ʖ ͡°)
Some checks failed
Ruby CI / test (pull_request) Failing after 11s
2024-03-20 19:38:45 -04:00
d3c6fac69b
And now actually use ubuntu-latest
Some checks failed
Ruby CI / test (pull_request) Failing after 26s
2024-03-20 19:19:20 -04:00
b0ec03f90d
Revert "Use correct runs-on"
Some checks failed
Ruby CI / test (pull_request) Failing after 5s
This reverts commit ad222c229e.
2024-03-20 19:10:30 -04:00
ad222c229e
Use correct runs-on
Some checks failed
Ruby CI / test (pull_request) Failing after 30s
2024-03-20 19:07:37 -04:00
ce376c3a50
Remove extra rake call
Some checks failed
Ruby CI / test (pull_request) Failing after 2s
2024-03-20 18:57:26 -04:00
97728e4cff
Provide ref for setup-ruby
Some checks failed
Ruby CI / test (pull_request) Failing after 7s
2024-03-20 18:56:55 -04:00
0aa6f8dc3e
Provide label
Some checks failed
Ruby CI / test (pull_request) Failing after 6s
2024-03-20 18:55:06 -04:00
87b5350f1f
Try out gitea actions 2024-03-20 18:50:43 -04:00
2 changed files with 37 additions and 86 deletions

View file

@ -1,86 +0,0 @@
name: default
kind: pipeline
steps:
- name: install
image: ruby:3.3.1
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- bin/bundle install --jobs=3 --retry=3
- name: autoload
image: ruby:3.3.1
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- bin/rails zeitwerk:check
depends_on:
- install
- name: lint
image: ruby:3.3.1
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- bin/bundle exec standardrb
depends_on:
- install
- name: test
image: ruby:3.3.1
volumes:
- name: bundle
path: /usr/local/bundle
commands:
- bin/rails assets:precompile
- bin/rails test
depends_on:
- install
volumes:
- name: bundle
temp: {}
trigger:
branch:
exclude: master
event: push
---
name: deploy
kind: pipeline
steps:
- name: docker-build
image: plugins/docker
environment:
SECRET_KEY_BASE:
from_secret: secret_key_base
RAILS_MASTER_KEY:
from_secret: rails_master_key
settings:
pull_image: true
registry: docker.atomaka.com
repo: docker.atomaka.com/budget
tags:
- latest
- ${DRONE_TAG}
- name: deploy
image: appleboy/drone-ssh
settings:
host:
from_secret: unraid_host
username:
from_secret: unraid_username
key:
from_secret: unraid_ssh_key
script:
- docker pull docker.atomaka.com/budget:latest
- docker restart budget
trigger:
event: tag

View file

@ -0,0 +1,37 @@
name: Ruby CI
on:
pull_request:
jobs:
test:
runs-on: ruby-latest
steps:
- name: Install Node
run: |
apt-get update
apt-get install git ca-certificates curl gnupg --yes
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
apt-get update
apt-get install -y nodejs
- uses: actions/checkout@v4
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install dependencies
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: autoload
run: bin/rails zeitwerk:check
- name: lint
run: bin/bundle exec standardrb
- name: test
run: |
bin/rails assets:precompile
bin/rails test