Replace Hub with GH CLI #220
Workflow file for this run
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: Vessel Tests | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
unit-test: | |
runs-on: ubuntu-latest | |
container: | |
image: cimg/clojure:1.11.1 | |
options: -u 1001:115 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Cache Maven deps | |
uses: actions/cache@v4 | |
env: | |
cache-name: maven-deps | |
with: | |
path: /__w/vessel/vessel/?/.m2 | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('deps.edn') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Run unit tests | |
run: 'make unit-test' | |
integration-test: | |
runs-on: ubuntu-latest | |
container: | |
image: cimg/clojure:1.11.1 | |
env: | |
VESSEL_TEST_REGISTRY: registry | |
options: -u 1001:115 | |
services: | |
registry: | |
image: registry:2 | |
ports: | |
- 5000:5000 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Cache Maven deps | |
uses: actions/cache@v4 | |
env: | |
cache-name: maven-deps | |
with: | |
path: /__w/vessel/vessel/?/.m2 | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('deps.edn') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Run integration tests | |
run: 'make integration-test' |