13 - name: Check out code
14 uses: actions/checkout@v3
16 uses: actions/setup-ruby@v1.1.3
18 ruby-version: ${{ env.ruby }}
20 uses: actions/cache@v3
23 key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}
25 bundle-${{ env.os }}-${{ env.ruby }}-
29 bundle config set deployment true
30 bundle install --jobs 4 --retry 3
32 run: bundle exec rubocop --format fuubar
37 - name: Check out code
38 uses: actions/checkout@v3
40 uses: actions/setup-ruby@v1.1.3
42 ruby-version: ${{ env.ruby }}
44 uses: actions/cache@v3
47 key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}
49 bundle-${{ env.os }}-${{ env.ruby }}-
53 bundle config set deployment true
54 bundle install --jobs 4 --retry 3
56 run: bundle exec erblint .
61 - name: Check out code
62 uses: actions/checkout@v3
64 uses: actions/setup-ruby@v1.1.3
66 ruby-version: ${{ env.ruby }}
68 uses: actions/cache@v3
71 key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}
73 bundle-${{ env.os }}-${{ env.ruby }}-
74 - name: Cache node modules
75 uses: actions/cache@v3
78 key: yarn-${{ env.os }}-${{ hashFiles('yarn.lock') }}
84 bundle config set deployment true
85 bundle install --jobs 4 --retry 3
86 - name: Install node modules
87 run: bundle exec rake yarn:install
88 - name: Create dummy database configuration
89 run: cp config/example.database.yml config/database.yml
91 run: bundle exec rake eslint
96 - name: Check out code
97 uses: actions/checkout@v3
99 uses: actions/setup-ruby@v1.1.3
101 ruby-version: ${{ env.ruby }}
103 uses: actions/cache@v3
106 key: bundle-${{ env.os }}-${{ env.ruby }}-${{ hashFiles('Gemfile.lock') }}
108 bundle-${{ env.os }}-${{ env.ruby }}-
112 bundle config set deployment true
113 bundle install --jobs 4 --retry 3
115 run: bundle exec brakeman -q