budget/.gitea/workflows/test.yaml

30 lines
882 B
YAML
Raw Normal View History

2024-03-20 18:50:43 -04:00
name: Ruby CI
on:
pull_request:
jobs:
test:
2024-04-23 20:55:06 -04:00
runs-on: ruby-latest
2024-03-20 18:50:43 -04:00
steps:
2024-04-23 20:57:59 -04:00
- 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
2024-03-20 18:50:43 -04:00
- uses: actions/checkout@v4
- name: Install dependencies
2024-03-20 19:46:14 -04:00
run: bundle install
2024-03-20 18:50:43 -04:00
- name: autoload
run: bin/rails zeitwerk:check
- name: lint
run: bin/bundle exec standardrb
- name: test
run: |
bin/rails assets:precompile
bin/rails test