diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml new file mode 100644 index 0000000..02d44ab --- /dev/null +++ b/.gitea/workflows/main.yml @@ -0,0 +1,24 @@ +name: CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 # all history for all branches and tags + + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + check-latest: true + + - name: Building + run: go build . + + - name: Testing + run: go test ./... diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index f312c8c..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: CI - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - name: Setup Go for use with actions - uses: actions/setup-go@v2 - with: - go-version: '1.14' # The Go version to download (if necessary) and use. - - - name: Check out code - uses: actions/checkout@v1 - - - name: Building - run: go build . - - - name: Testing - run: go test ./...