diff --git a/.github/workflows/gouteur.yml b/.github/workflows/gouteur.yml index 0d7a0b8..18e2052 100644 --- a/.github/workflows/gouteur.yml +++ b/.github/workflows/gouteur.yml @@ -7,14 +7,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 3.2 - - name: Prepare + bundler-cache: true + - name: Install and run ragel run: | - bundle install --jobs 4 sudo apt-get install -yqq ragel bundle exec rake ragel:rb - name: Test diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3ce4511..9702a77 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,22 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 - - name: Cache gems - uses: actions/cache@v1 - with: - path: vendor/bundle - key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-rubocop- - - name: Install gems - run: | - bundle config path vendor/bundle - bundle install --jobs 4 --retry 3 + ruby-version: 3.2 + bundler-cache: true # Create a dummy scanner.rb so we don't need Ragel but require statements work - name: Stub scanner.rb run: 'echo "class Regexp::Scanner; end" > lib/regexp_parser/scanner.rb' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1865135..d3e4ec0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,14 +15,13 @@ jobs: ruby: [ '2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', 'ruby-head' ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby ${{ matrix.ruby }} uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - - name: Install dependencies - run: | - bundle install --jobs 4 - sudo apt-get install -yqq ragel + bundler-cache: true + - name: Install ragel + run: sudo apt-get install -yqq ragel - name: Test with Rake run: bundle exec rake test:full