From 13ed89bb24b2e55116c82955e66800d63b09fe6e Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 12 Oct 2021 15:55:38 -0400 Subject: [PATCH] Add CI and Soft-Serve workflows --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++ .github/workflows/soft-serve.yml | 22 +++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/soft-serve.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..ca1a89a08c141d377cbdf4951e8a514c228300cb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + +jobs: + + build: + strategy: + matrix: + go-version: [~1.17] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + # Remove this later + - name: Clone internal repositories + run: | + git clone -b release https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/charm-internal ../charm + git clone -b master https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/bubbletea-internal ../bubbletea + git clone -b master https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/wish ../wish + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + + - name: Build + run: go build -v . + + - name: Test + run: go test -v . diff --git a/.github/workflows/soft-serve.yml b/.github/workflows/soft-serve.yml new file mode 100644 index 0000000000000000000000000000000000000000..311bb63f478aaeb2b7b0d93f3da03d7da35a34a2 --- /dev/null +++ b/.github/workflows/soft-serve.yml @@ -0,0 +1,22 @@ +name: Soft-Serve + +on: + push: + branches: + - main + +jobs: + softserve: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Push to Soft-Serve + uses: charmbracelet/soft-serve-action@v1 + with: + server: "beta.charm.sh" + ssh-key: "${{ secrets.CHARM_SOFT_SERVE_KEY }}" + name: "soft-serve" \ No newline at end of file