Xe's Kubernetes custom resources
0

Configure Feed

Select the types of activity you want to include in your feed.

crds / .gitea / workflows / go.yaml
1.2 kB 49 lines
1name: Go 2 3on: 4 push: 5 branches: ["main"] 6 pull_request: 7 branches: ["main"] 8 9jobs: 10 build: 11 runs-on: ubuntu-latest 12 if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} 13 steps: 14 - uses: actions/checkout@v4 15 with: 16 persist-credentials: false 17 fetch-tags: true 18 fetch-depth: 0 19 20 - name: build essential 21 run: | 22 sudo apt-get update 23 sudo apt-get install -y build-essential 24 25 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 26 with: 27 node-version: 22 28 29 - run: node --version 30 31 - name: Install deps 32 run: npm ci 33 34 - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 35 with: 36 go-version: 'stable' 37 38 - name: Setup Go caches 39 uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 40 with: 41 path: | 42 ~/.cache/go-build 43 ~/go/pkg/mod 44 key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} 45 restore-keys: | 46 ${{ runner.os }}-golang- 47 48 - name: Test 49 run: npm run test