From 5793f6859e26fb5817ee6a718f214fbdb94b329a Mon Sep 17 00:00:00 2001 From: Blaquewithaq Date: Sun, 10 Dec 2023 14:30:13 -0600 Subject: [PATCH] feat: add ci workflow --- .github/workflows/ci.yml | 58 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 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..50241ad --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,58 @@ +name: CI + +on: + push: + branches: + - "*" + tags: + - "*.*.*" + + pull_request: + branches: + - "*" + +jobs: + build-test-archive: + name: Build, Test and Archive + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest] # windows-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: "latest" + + - name: Install Dependencies + run: | + bun install + + - name: Run Builder + id: build + run: bun builder + + - name: Run Tests + id: test + if: success() + run: bun test + + - name: Create archive + id: archive + if: success() + run: bun archive + + - name: Upload Artifact + if: success() + uses: actions/upload-artifact@v2 + with: + name: ara-${{ matrix.os }} + path: | + pkg/**/* + *.tar.gz + *.zip