From dfeba9beb9d949dbe87e7338f790f1a4518c9ded Mon Sep 17 00:00:00 2001 From: cypherkitty Date: Wed, 4 Sep 2024 18:55:10 -0700 Subject: [PATCH] Build with earthly --- .github/workflows/core.deploy.yml | 37 ------------------------------- .github/workflows/core.test.yml | 26 ---------------------- .github/workflows/test.yml | 31 ++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 63 deletions(-) delete mode 100644 .github/workflows/core.deploy.yml delete mode 100644 .github/workflows/core.test.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/core.deploy.yml b/.github/workflows/core.deploy.yml deleted file mode 100644 index ca5fd17b..00000000 --- a/.github/workflows/core.deploy.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: "Core Deployment" - -on: - workflow_dispatch: - - # Temporary disable automatic build - #push: - #branches: - # - main - #paths: - # - '.github/workflows/core.yml' - # - 'core/**' - -jobs: - core-deploy: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - uses: actions/cache@v3 - with: - path: | - ~/.cargo - target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - - name: Run tests - run: | - cargo test - - - name: Publish core - working-directory: core - run: | - cargo publish --token ${CRATES_TOKEN} - env: - CRATES_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} diff --git a/.github/workflows/core.test.yml b/.github/workflows/core.test.yml deleted file mode 100644 index c676b9a3..00000000 --- a/.github/workflows/core.test.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: "Core Testing" - -on: - pull_request: - -jobs: - core-test: - runs-on: ubuntu-latest - - concurrency: - group: ${{ github.ref }} - cancel-in-progress: true - - steps: - - uses: actions/checkout@v3 - - - uses: actions/cache@v3 - with: - path: | - ~/.cargo - target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - - name: Run tests - run: | - cargo test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..48de4dce --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: "Testing" + +on: + workflow_dispatch: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + + env: + FORCE_COLOR: 1 + + concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + + steps: + - uses: earthly/actions-setup@v1 + with: + version: v0.8.0 + + - uses: actions/checkout@v4 + + - name: run tests + run: | + earthly +app-test