chore: swap makefile for justfile #750
Workflow file for this run
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: 'CI' | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: ~ | |
| workflow_dispatch: ~ | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rubyversion: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4', '4.0'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: EasyPost/ep-actions/.github/actions/setup/just@main | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.rubyversion }} | |
| rubygems: '3.4.0' | |
| bundler-cache: true | |
| - name: Install Dependencies | |
| run: just install | |
| - name: run tests | |
| run: EASYPOST_TEST_API_KEY=123 EASYPOST_PROD_API_KEY=123 just test | |
| - name: Coveralls | |
| if: github.ref == 'refs/heads/master' | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: './coverage/lcov/easypost-ruby.lcov' | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: EasyPost/ep-actions/.github/actions/setup/just@main | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.4' | |
| rubygems: '3.3.0' | |
| bundler-cache: true | |
| - name: Install Dependencies | |
| run: just install | |
| - name: Install style guides | |
| run: just install-styleguide | |
| - name: Lint Project | |
| run: just lint | |
| docs: | |
| if: github.ref == 'refs/heads/master' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: EasyPost/ep-actions/.github/actions/setup/just@main | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.4' | |
| rubygems: '3.3.0' | |
| bundler-cache: true | |
| - name: Install Dependencies | |
| run: just install | |
| - name: Generate Docs | |
| run: just docs | |
| - name: Deploy docs | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: docs |