Asenna lein #585
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: heratepalvelu | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Install Leiningen | |
run: | | |
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein | |
export PATH=$PATH:$(pwd) | |
lein | |
- name: Install Dependencies | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
shell: bash | |
run: | | |
git clone https://github.com/Opetushallitus/ci-tools.git | |
lein deps | |
- name: Run tests | |
run: lein test | |
- name: Static checks | |
run: lein checkall |