From 8f37509c17f2e40bd96c10f23d7a795e50d4af3c Mon Sep 17 00:00:00 2001 From: Rui Gomes Date: Wed, 28 Aug 2024 00:15:44 +0100 Subject: [PATCH] add cicd --- .github/workflows/release.yaml | 20 ++++++++++++++++++++ .github/workflows/tests.yaml | 23 +++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/release.yaml create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..7018087 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,20 @@ +name: Release + +on: + push: + tags: + - "v*.*.*" + +jobs: + create_release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 + + - name: Release + uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 #v2.0.8 + with: + prerelease: ${{ contains(github.ref, '-alpha') }} + generate_release_notes: true + token: ${{ secrets.ACTION_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..5f461ce --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,23 @@ +name: Tests + +on: + pull_request: + branches: [master, main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 + + - name: Install Docker Compose + run: | + sudo apt-get update + sudo apt-get install -y docker-compose + + - name: Verify Docker Compose installation + run: docker-compose --version + + - name: Run Development Docker Compose + run: docker-compose up -d \ No newline at end of file