diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..897c7a3c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,12 @@ +name: Lint & Test +on: + pull_request: + push: + branches: + - master + +jobs: + test: + uses: SiaFoundation/workflows/.github/workflows/go-test.yml@master + with: + try-build: false diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml deleted file mode 100644 index ef14d9b9..00000000 --- a/.github/workflows/nightly.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Nightly - -on: - workflow_dispatch: - schedule: - - cron: '0 0 * * *' - -jobs: - test: - strategy: - matrix: - os: [ ubuntu-latest, macos-latest, windows-latest ] - go-version: [ '1.21', '1.22' ] - runs-on: ${{ matrix.os }} - timeout-minutes: 120 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go-version }} - - name: test - uses: n8maninger/action-golang-test@v2 - with: - args: "-count=50;-timeout=30m;-failfast" - skip-go-install: true - show-package-output: true - - name: test-race - uses: n8maninger/action-golang-test@v2 - with: - args: "-race;-count=50;-timeout=30m;-failfast" - skip-go-install: true - show-package-output: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 66a98f19..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Test - -on: - pull_request: - branches: [ master ] - push: - branches: [ master ] - -jobs: - test: - strategy: - matrix: - os: [ ubuntu-latest, macos-latest, windows-latest ] - go-version: [ '1.21', '1.22' ] - runs-on: ${{ matrix.os }} - timeout-minutes: 10 - steps: - - name: Configure git # required for golangci-lint on Windows - shell: bash - run: git config --global core.autocrlf false - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go-version }} - - name: Lint - uses: golangci/golangci-lint-action@v4 - with: - skip-cache: true - - name: test - uses: n8maninger/action-golang-test@v2 - with: - args: "-race" - skip-go-install: true - show-package-output: true diff --git a/go.mod b/go.mod index feaa17f6..cd27debb 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module go.sia.tech/core -go 1.21.8 +go 1.23.0 require ( go.sia.tech/mux v1.2.0