CI #184
This file contains 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: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: "0 0 * * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} # Ensure that only one instance of this workflow is running per Pull Request | |
cancel-in-progress: true # Cancel any previous runs of this workflow | |
jobs: | |
unit_tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Configure git | |
run: 'git config --global init.defaultBranch main' | |
- uses: actions/checkout@v4.1.7 | |
- uses: ruby/setup-ruby@v1.193.0 | |
with: | |
ruby-version: '3.2.2' | |
- run: bundle | |
- run: bin/rails test |