Skip to content

Commit

Permalink
Merge pull request #311 from 4chain-ag/refactor/SPV-1087-add-new-vers…
Browse files Browse the repository at this point in the history
…ion-of-the-client

refactor(SPV-1087): new structure of go-client
  • Loading branch information
dorzepowski authored Jan 8, 2025
2 parents fffa2c3 + c2094b7 commit c48b7ef
Show file tree
Hide file tree
Showing 203 changed files with 14,115 additions and 5,677 deletions.
218 changes: 0 additions & 218 deletions .github/mergify.yml

This file was deleted.

70 changes: 12 additions & 58 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,16 @@
# See more at: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: run-go-tests

env:
GO111MODULE: on

on:
pull_request:
branches:
- "*"
push:
branches:
- "*"
# schedule:
# - cron: '1 4 * * *'
branches-ignore:
- main
- master

permissions:
contents: write
pull-requests: read

jobs:
yamllint:
name: Run yaml linter
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run yaml linter
uses: ibiqlik/[email protected]
asknancy:
name: Ask Nancy (check dependencies)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Write go list
run: go list -json -m all > go.list
- name: Ask Nancy
uses: sonatype-nexus-community/[email protected]
continue-on-error: true
test:
needs: [yamllint, asknancy]
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go from go.mod
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Cache code
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod # Module download cache
~/.cache/go-build # Build cache (Linux)
~/Library/Caches/go-build # Build cache (Mac)
'%LocalAppData%\go-build' # Build cache (Windows)
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run linter and tests
run: make test-coverage-custom
on-push:
uses: bactions/workflows/.github/workflows/on-push-go.yml@main
secrets:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
SLACK_WEBHOOK_URL: ${{ secrets.ON_PUSH_SLACK_WEBHOOK_URL }}
Loading

0 comments on commit c48b7ef

Please sign in to comment.