6 group: ${{ github.workflow }}-{{ github.head_ref || github.ref }}
7 cancel-in-progress: true
16 - name: Check out code
17 uses: actions/checkout@v3
19 uses: actions/setup-ruby@v1.1.3
21 ruby-version: ${{ env.ruby }}
23 uses: actions/cache@v3
26 key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}
28 bundle-${{ env.os }}-${{ env.ruby }}-
32 bundle config set deployment true
33 bundle install --jobs 4 --retry 3
35 run: bundle exec rubocop --format fuubar
40 - name: Check out code
41 uses: actions/checkout@v3
43 uses: actions/setup-ruby@v1.1.3
45 ruby-version: ${{ env.ruby }}
47 uses: actions/cache@v3
50 key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}
52 bundle-${{ env.os }}-${{ env.ruby }}-
56 bundle config set deployment true
57 bundle install --jobs 4 --retry 3
59 run: bundle exec erblint .
64 - name: Check out code
65 uses: actions/checkout@v3
67 uses: actions/setup-ruby@v1.1.3
69 ruby-version: ${{ env.ruby }}
71 uses: actions/cache@v3
74 key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}
76 bundle-${{ env.os }}-${{ env.ruby }}-
77 - name: Cache node modules
78 uses: actions/cache@v3
81 key: yarn-${{ env.os }}-${{ hashFiles('yarn.lock') }}
87 bundle config set deployment true
88 bundle install --jobs 4 --retry 3
89 - name: Install node modules
90 run: bundle exec rake yarn:install
91 - name: Create dummy database configuration
92 run: cp config/example.database.yml config/database.yml
94 run: bundle exec rake eslint
99 - name: Check out code
100 uses: actions/checkout@v3
102 uses: actions/setup-ruby@v1.1.3
104 ruby-version: ${{ env.ruby }}
106 uses: actions/cache@v3
109 key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}
111 bundle-${{ env.os }}-${{ env.ruby }}-
115 bundle config set deployment true
116 bundle install --jobs 4 --retry 3
118 run: bundle exec brakeman -q