Update dotenv requirement from ~> 2.4 to ~> 3.2 #328
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| # See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ for more details. | |
| # Using pull_request_target in order to grant dependabot access to run the test action. | |
| pull_request_target: | |
| branches-ignore: | |
| - 'gh-pages' | |
| types: [labeled] # for dependabot | |
| push: | |
| branches-ignore: | |
| - 'gh-pages' | |
| - 'dependabot/**' | |
| workflow_dispatch: | |
| inputs: | |
| deploy: | |
| description: 'Deploy: [true, false]' | |
| required: true | |
| default: 'false' | |
| # ensure only one workflow per ref | |
| # pull_request_target/push events commonly result in duplicate workflows being ran | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| if: > | |
| contains(github.event.pull_request.labels.*.name, 'dependencies') | |
| || github.event_name == 'push' | |
| || github.event_name == 'workflow_dispatch' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| # Latest Ubuntu is currently 24.04, which doesn't support older versions of Ruby. We need to decide what versions of Ruby need to be tested against. | |
| - ubuntu-latest # currently ubuntu-22.04 | |
| - ubuntu-22.04 | |
| - macos-latest # currently macos-14, ARM based | |
| - macos-latest-large # currently macos-14 Intel based | |
| - macos-13 | |
| ruby: | |
| - 3.1 | |
| - 3.2 | |
| - 3.3 | |
| - 3.4 | |
| - head | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: Rubocop | |
| run: bin/rake rubocop | |
| - name: Rspec tests | |
| run: bin/rake spec | |
| - name: Yard documents | |
| run: bin/rake yard | |
| build-deploy-docs: | |
| needs: tests | |
| if: > | |
| contains(github.event.pull_request.labels.*.name, 'dependencies') | |
| || github.event_name == 'push' | |
| || github.event.inputs.deploy == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.3 | |
| bundler-cache: true | |
| - name: Yard documents | |
| run: bin/rake yard | |
| - name: Deploy pages | |
| if: github.ref == 'refs/heads/master' # only push on master branch | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: doc | |
| clean: true | |
| clean-exclude: | | |
| .gitattributes | |
| .gitignore | |
| LICENSE | |
| # release-gem: | |
| # needs: tests | |
| # if: (github.event_name == 'push' || github.event.inputs.deploy == 'true') | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v5 | |
| # with: | |
| # persist-credentials: false | |
| # - uses: ruby/setup-ruby@v1 | |
| # with: | |
| # ruby-version: 3.2 | |
| # bundler-cache: true | |
| # - name: Release new gem | |
| # run: rake release[remote] |