diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 14710e9..374c38e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,37 +5,36 @@ name: Go on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: - build: runs-on: ubuntu-latest environment: test env: - ENVIRONMENT: ${{ secrets.ENVIRONMENT }} - HOST: ${{ secrets.HOST }} - PORT: ${{ secrets.PORT }} - JWT_SECRET: ${{ secrets.JWT_SECRET }} - CORS_ALLOWED_ORIGINS: ${{ secrets.CORS_ALLOWED_ORIGINS }} - DB_FILE: ${{ secrets.DB_FILE }} - DOCKER_DB_FOLDER: ${{ secrets.DOCKER_DB_FOLDER }} - SMTP_EMAIL: ${{ secrets.SMTP_EMAIL }} - SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }} - SMTP_HOST: ${{ secrets.SMTP_HOST }} - SMTP_PORT: ${{ secrets.SMTP_PORT }} + ENVIRONMENT: ${{ secrets.ENVIRONMENT }} + HOST: ${{ secrets.HOST }} + PORT: ${{ secrets.PORT }} + JWT_SECRET: ${{ secrets.JWT_SECRET }} + CORS_ALLOWED_ORIGINS: ${{ secrets.CORS_ALLOWED_ORIGINS }} + DB_FILE: ${{ secrets.DB_FILE }} + DOCKER_DB_FOLDER: ${{ secrets.DOCKER_DB_FOLDER }} + SMTP_EMAIL: ${{ secrets.SMTP_EMAIL }} + SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }} + SMTP_HOST: ${{ secrets.SMTP_HOST }} + SMTP_PORT: ${{ secrets.SMTP_PORT }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.20' + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: "1.23.0" - - name: Build - run: go build -v ./... + - name: Build + run: go build -v ./... - - name: Test - run: go test -v ./... + - name: Test + run: go test -v ./...