-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (44 loc) · 1.17 KB
/
test.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop --parallel -c .rubocop.yml
# - name: Run typecheck
# run: |
# bundle exec tapioca init && \
# bundle exec rake rails_rbi:routes && \
# bundle exec tapioca dsl && \
# bundle exec srb typecheck -q
# - name: Run security checks
# run: |
# bin/bundler-audit --update
# bin/brakeman -q -w2
- name: Run tests
run: bundle exec rake test
docker:
runs-on: ubuntu-latest
needs: [test]
if: github.ref == 'refs/heads/master'
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Docker Build and Push
uses: cartoway/docker-compose-build-push-action@main
with:
registry_password: ${{ secrets.GITHUB_TOKEN }}