-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (34 loc) · 997 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: ci
on:
push:
branches:
- main
jobs:
tests:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Setup FluentCI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: postgres
args: start
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
POSTGRES_USER: postgres
POSTGRES_DB: demo_rails_test
- name: check style + security
run: |
fluentci run --wasm ruby bundle_exec rubocop
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUBY_VERSION: 3.1.4
- name: Run tests
run: |
fluentci run --wasm ruby bundle_exec rails db:migrate
fluentci run --wasm ruby bundle_exec rails db:seed
fluentci run --wasm ruby bundle_exec rails test
fluentci run --wasm ruby bundle_exec rspec spec
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}