Bump Go version to v1.20 (#24439)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
30b12f199b
Коммит
0e84ccb383
11
.github/workflows/migration.yml
поставляемый
11
.github/workflows/migration.yml
поставляемый
@@ -7,8 +7,7 @@ jobs:
|
||||
runs-on: ubuntu-22.04
|
||||
env:
|
||||
COMPOSE_PROJECT_NAME: ghactions
|
||||
BUILD_IMAGE: mattermost/mattermost-build-server:20230118_golang-1.19.5
|
||||
TEST_IMAGE: migration-test-image
|
||||
BUILD_IMAGE: mattermost/mattermost-build-server:20230904_golang-1.20.7
|
||||
defaults:
|
||||
run:
|
||||
working-directory: server
|
||||
@@ -21,10 +20,6 @@ jobs:
|
||||
docker-compose --ansi never run --rm start_dependencies
|
||||
docker-compose --ansi never exec -T minio sh -c 'mkdir -p /data/mattermost-test';
|
||||
docker-compose --ansi never ps
|
||||
- name: Build test image
|
||||
run: |
|
||||
echo -e "FROM $BUILD_IMAGE\n\nRUN apt update && apt install -y pgloader" >> dockerfile_tmp
|
||||
docker build -t $TEST_IMAGE - < dockerfile_tmp
|
||||
- name: Generate test-data
|
||||
run: |
|
||||
docker run --net ${COMPOSE_PROJECT_NAME}_mm-test \
|
||||
@@ -34,7 +29,7 @@ jobs:
|
||||
-e GOCACHE=/go/cache \
|
||||
-v $PWD:/mattermost \
|
||||
-w /mattermost \
|
||||
$TEST_IMAGE \
|
||||
$BUILD_IMAGE \
|
||||
make test-data
|
||||
- name: Migrate the DB and compare
|
||||
run: |
|
||||
@@ -45,7 +40,7 @@ jobs:
|
||||
-e GOCACHE=/go/cache \
|
||||
-v $PWD:/mattermost \
|
||||
-w /mattermost \
|
||||
$TEST_IMAGE \
|
||||
$BUILD_IMAGE \
|
||||
make test-migration
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||
|
||||
4
.github/workflows/mmctl-test-template.yml
поставляемый
4
.github/workflows/mmctl-test-template.yml
поставляемый
@@ -15,14 +15,14 @@ on:
|
||||
required: true
|
||||
type: string
|
||||
env:
|
||||
go-version: "1.19.5"
|
||||
go-version: "1.20.7"
|
||||
jobs:
|
||||
test:
|
||||
name: ${{ inputs.name }}
|
||||
runs-on: ubuntu-latest-8-cores
|
||||
env:
|
||||
COMPOSE_PROJECT_NAME: ghactions
|
||||
BUILD_IMAGE: mattermost/mattermost-build-server:20230118_golang-1.19.5
|
||||
BUILD_IMAGE: mattermost/mattermost-build-server:20230904_golang-1.20.7
|
||||
steps:
|
||||
- name: Checkout mattermost project
|
||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||
|
||||
2
.github/workflows/server-ci-master.yml
поставляемый
2
.github/workflows/server-ci-master.yml
поставляемый
@@ -7,7 +7,7 @@ on:
|
||||
- release-*
|
||||
- mono-repo*
|
||||
env:
|
||||
go-version: "1.19.5"
|
||||
go-version: "1.20.7"
|
||||
|
||||
jobs:
|
||||
master-ci:
|
||||
|
||||
2
.github/workflows/server-ci-pr.yml
поставляемый
2
.github/workflows/server-ci-pr.yml
поставляемый
@@ -6,7 +6,7 @@ on:
|
||||
- "e2e-tests/**"
|
||||
- ".github/**"
|
||||
env:
|
||||
go-version: "1.19.5"
|
||||
go-version: "1.20.7"
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
2
.github/workflows/server-ci-template.yml
поставляемый
2
.github/workflows/server-ci-template.yml
поставляемый
@@ -6,7 +6,7 @@ on:
|
||||
workflow_call:
|
||||
|
||||
env:
|
||||
go-version: "1.19.5"
|
||||
go-version: "1.20.7"
|
||||
|
||||
jobs:
|
||||
check-mocks:
|
||||
|
||||
4
.github/workflows/server-test-template.yml
поставляемый
4
.github/workflows/server-test-template.yml
поставляемый
@@ -15,14 +15,14 @@ on:
|
||||
required: true
|
||||
type: string
|
||||
env:
|
||||
go-version: "1.19.5"
|
||||
go-version: "1.20.7"
|
||||
jobs:
|
||||
test:
|
||||
name: ${{ inputs.name }}
|
||||
runs-on: ubuntu-latest-8-cores
|
||||
env:
|
||||
COMPOSE_PROJECT_NAME: ghactions
|
||||
BUILD_IMAGE: mattermost/mattermost-build-server:20230118_golang-1.19.5
|
||||
BUILD_IMAGE: mattermost/mattermost-build-server:20230904_golang-1.20.7
|
||||
steps:
|
||||
- name: Checkout mattermost project
|
||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||
|
||||
Ссылка в новой задаче
Block a user