mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
tech: updated go version on action
This commit is contained in:
+22
-23
@@ -5,37 +5,36 @@ name: Go
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: test
|
environment: test
|
||||||
env:
|
env:
|
||||||
ENVIRONMENT: ${{ secrets.ENVIRONMENT }}
|
ENVIRONMENT: ${{ secrets.ENVIRONMENT }}
|
||||||
HOST: ${{ secrets.HOST }}
|
HOST: ${{ secrets.HOST }}
|
||||||
PORT: ${{ secrets.PORT }}
|
PORT: ${{ secrets.PORT }}
|
||||||
JWT_SECRET: ${{ secrets.JWT_SECRET }}
|
JWT_SECRET: ${{ secrets.JWT_SECRET }}
|
||||||
CORS_ALLOWED_ORIGINS: ${{ secrets.CORS_ALLOWED_ORIGINS }}
|
CORS_ALLOWED_ORIGINS: ${{ secrets.CORS_ALLOWED_ORIGINS }}
|
||||||
DB_FILE: ${{ secrets.DB_FILE }}
|
DB_FILE: ${{ secrets.DB_FILE }}
|
||||||
DOCKER_DB_FOLDER: ${{ secrets.DOCKER_DB_FOLDER }}
|
DOCKER_DB_FOLDER: ${{ secrets.DOCKER_DB_FOLDER }}
|
||||||
SMTP_EMAIL: ${{ secrets.SMTP_EMAIL }}
|
SMTP_EMAIL: ${{ secrets.SMTP_EMAIL }}
|
||||||
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
|
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
|
||||||
SMTP_HOST: ${{ secrets.SMTP_HOST }}
|
SMTP_HOST: ${{ secrets.SMTP_HOST }}
|
||||||
SMTP_PORT: ${{ secrets.SMTP_PORT }}
|
SMTP_PORT: ${{ secrets.SMTP_PORT }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: "1.23.0"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build -v ./...
|
run: go build -v ./...
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|||||||
Reference in New Issue
Block a user