From b99fe9f3db06fdc4aeee5eb67497d9e8662e26d9 Mon Sep 17 00:00:00 2001 From: Julien Griffoul Date: Sun, 4 Jun 2023 17:58:33 +0200 Subject: [PATCH 1/2] Update paths in default dev config --- dev/resources/config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/resources/config.yaml b/dev/resources/config.yaml index 996c901..11c1f36 100644 --- a/dev/resources/config.yaml +++ b/dev/resources/config.yaml @@ -23,12 +23,12 @@ logging: com.amazonaws.requestId: warn metadata: type: "shell" - path: "/home/mcorbin/prog/rust/testregistry" + path: "registry" target: "origin/master" url: "https://github.com/mcorbin/testregistry" crate: store: "filesystem" - path: "/home/mcorbin/prog/rust/crates" + path: "crates" frontend: enabled: true secret: !secret uJo8QrRAANokteN_xVxpP75lc_A5Sw6t From 0aefd6cf987272fc5af9f0724cbc09bd9a64e210 Mon Sep 17 00:00:00 2001 From: Julien Griffoul Date: Sun, 4 Jun 2023 17:58:46 +0200 Subject: [PATCH 2/2] Add initial CI pipeline --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eb80590 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + services: + postgres: + image: postgres + + env: + POSTGRES_PASSWORD: meuse + POSTGRES_USER: meuse + POSTGRES_DB: meuse + + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + - 5432:5432 + + steps: + - uses: actions/checkout@v3 + + - name: Create folders specified in default config + run: | + mkdir registry + mkdir crates + + - name: Install dependencies + run: lein deps + + - name: Run tests + run: lein test