CI #1421
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: | |
| branches: [ master ] | |
| schedule: | |
| - cron: 0 0 * * * | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - name: Get local Vim version | |
| run: echo "local_vim_version=$(<.vim-version)" >>$GITHUB_ENV | |
| - name: Set up Vim | |
| uses: thinca/action-setup-vim@v2 | |
| with: | |
| vim_version: ${{ github.event_name == 'schedule' && 'head' || env.local_vim_version }} | |
| vim_type: vim | |
| download: never # For some reason 'available' doesn't build from source as a fallback. | |
| - name: Set up Git | |
| run: | | |
| git config --global user.email '[email protected]' | |
| git config --global user.name 'CI' | |
| git config --global init.defaultBranch 'master' | |
| - name: Run tests | |
| run: rake ci 2>&1 |