13ed89bb24b2e55116c82955e66800d63b09fe6e
- Author
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Committer
- Ayman Bagabas <ayman.bagabas@gmail.com>
- Date
Message
Add CI and Soft-Serve workflows
Diff
1diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
2new file mode 100644
3index 0000000000000000000000000000000000000000..ca1a89a08c141d377cbdf4951e8a514c228300cb
4--- /dev/null
5+++ b/.github/workflows/ci.yml
6@@ -0,0 +1,34 @@
7+name: CI
8+
9+on:
10+ push:
11+ branches: [ main ]
12+ pull_request:
13+
14+jobs:
15+
16+ build:
17+ strategy:
18+ matrix:
19+ go-version: [~1.17]
20+ runs-on: ubuntu-latest
21+ steps:
22+ - uses: actions/checkout@v2
23+
24+ # Remove this later
25+ - name: Clone internal repositories
26+ run: |
27+ git clone -b release https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/charm-internal ../charm
28+ git clone -b master https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/bubbletea-internal ../bubbletea
29+ git clone -b master https://${{ secrets.ACCESS_TOKEN }}@github.com/charmbracelet/wish ../wish
30+
31+ - name: Set up Go
32+ uses: actions/setup-go@v2
33+ with:
34+ go-version: ${{ matrix.go-version }}
35+
36+ - name: Build
37+ run: go build -v .
38+
39+ - name: Test
40+ run: go test -v .
41diff --git a/.github/workflows/soft-serve.yml b/.github/workflows/soft-serve.yml
42new file mode 100644
43index 0000000000000000000000000000000000000000..311bb63f478aaeb2b7b0d93f3da03d7da35a34a2
44--- /dev/null
45+++ b/.github/workflows/soft-serve.yml
46@@ -0,0 +1,22 @@
47+name: Soft-Serve
48+
49+on:
50+ push:
51+ branches:
52+ - main
53+
54+jobs:
55+ softserve:
56+ runs-on: ubuntu-latest
57+ steps:
58+ - name: Checkout code
59+ uses: actions/checkout@v2
60+ with:
61+ fetch-depth: 0
62+
63+ - name: Push to Soft-Serve
64+ uses: charmbracelet/soft-serve-action@v1
65+ with:
66+ server: "beta.charm.sh"
67+ ssh-key: "${{ secrets.CHARM_SOFT_SERVE_KEY }}"
68+ name: "soft-serve"