diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d9b38da..f38c041 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -2,7 +2,7 @@ name: Go on: push: - branches: ["main"] + branches: ["master"] jobs: diff --git a/.github/workflows/go2.yml b/.github/workflows/go2.yml new file mode 100644 index 0000000..ee04f49 --- /dev/null +++ b/.github/workflows/go2.yml @@ -0,0 +1,33 @@ +name: Go + +on: + push: + branches: ["new_workflow"] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + caches: false + go-version: '1.23.4' + + - name: Build + run: go build -v ./... + + tests: + # Задание "tests" зависит от задания "build" и будет выполнено после него + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + + - name: Test + run: go test -v ./.. \ No newline at end of file