Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Jul 30, 2024
1 parent 204ce17 commit 1957c80
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/apiserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- apiserver/**

jobs:
test:
build:
runs-on: ubuntu-24.04
permissions:
contents: read
Expand All @@ -27,28 +27,22 @@ jobs:
- name: Check EditorConfig compliance
run: eclint check $(git ls-files) apiserver

build:
runs-on: ubuntu-24.04
needs: test
permissions:
contents: read
steps:
- uses: actions/checkout@v4

- run: ls -l --color -Fh
- name: Check that we're using system Ruby
run: test "$(which ruby)" = /usr/bin/ruby

- uses: actions/cache@v4
with:
path: vendor/bundle
path: apiserver/vendor/bundle
key: ${{ runner.os }}-24.04-${{ runner.arch }}-gems-${{ hashFiles('Gemfile.lock') }}

- name: Install matching Bundler version
run: gem install bundler -v $(grep -A1 "BUNDLED WITH" Gemfile.lock | tail -n1) --no-document
working-directory: apiserver

- name: Install gem bundle
run: bundle install
working-directory: apiserver
env:
BUNDLE_DEPLOYMENT: "true"
BUNDLE_PATH: vendor/bundle
Expand Down

0 comments on commit 1957c80

Please sign in to comment.