budget/.gitea/workflows/test.yaml
Andrew Tomaka c9819bfa93
Some checks failed
Ruby CI / test (pull_request) Failing after 30s
Install a newer node version
2024-03-20 21:20:53 -04:00

33 lines
987 B
YAML

name: Ruby CI
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
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
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.0
- name: Install dependencies
run: bundle install
- name: autoload
run: bin/rails zeitwerk:check
- name: lint
run: bin/bundle exec standardrb
- name: test
run: |
bin/rails assets:precompile
bin/rails test