Migrate CI from Travis CI to GitHub Actions #1
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: | |
| branches: [ master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '11' | |
| - name: Install Leiningen | |
| run: | | |
| wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein | |
| chmod +x lein | |
| sudo mv lein /usr/local/bin/ | |
| lein version | |
| - name: Install PhantomJS | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y phantomjs | |
| - name: Cache Leiningen dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-lein-${{ hashFiles('**/project.clj') }} | |
| restore-keys: | | |
| ${{ runner.os }}-lein- | |
| - name: Run tests | |
| run: lein test-all |