Create LICENSE #375
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: | |
push: | |
branches-ignore: | |
- master | |
pull_request: | |
types: [opened, ready_for_review, review_requested] | |
# Allows the CI to use the secrets to push to ECR when a fork is merged. | |
# You can see the if statement in the ECR step. | |
pull_request_target: | |
types: [closed] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install clojure tools | |
uses: DeLaGuardo/setup-clojure@10.2 | |
with: | |
cli: latest | |
- name: Run the clj tests | |
run: clojure -A:jvm-base:server/test | |
- name: Run the cljs tests | |
run: clojure -A:jvm-base:client:web/test-headless | |
- name: Build main.js | |
run: clojure -T:build js-bundle | |
- name: Build image and push to ECR | |
if: github.event.pull_request.merged == true | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
ECR_REPO: ${{ secrets.ECR_REPO }} | |
run: clojure -T:jib build |