Skip to content

Docker-based tests #2316

Docker-based tests

Docker-based tests #2316

# Code generated by genconfig. DO NOT EDIT.
on:
push:
branches:
- main
pull_request:
branches:
- '**'
schedule:
- cron: '0 9 * * *'
# actions/upload-artifact does not os.ExpandEnv the value passed
# to it as a path. Hence we have to hard code a directory that
# exists outside of the code checkout directory, and set ARTEFACTS
# accordingly below.
#
# Tracking https://github.com/actions/upload-artifact/issues/8
env:
GO111MODULE: "on"
GOPROXY: "https://proxy.golang.org"
ARTEFACTS: "/home/runner/.artefacts"
CI: "true"
DOCKER_HUB_USER: "govimci"
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
GH_USER: "x-access-token"
GH_TOKEN: ${{ github.token }}
GOVIM_TEST_RACE_SLOWDOWN: "1.5"
GOVIM_ERRLOGMATCH_WAIT: "25s"
name: Docker-based tests
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
go_version: ["go1.22.3"]
vim_flavor: ["vim"]
vim_version: ["v9.1.0412"]
runs-on: ${{ matrix.os }}
env:
GO_VERSION: ${{ matrix.go_version }}
VIM_FLAVOR: ${{ matrix.vim_flavor }}
VIM_VERSION: ${{ matrix.vim_version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build docker image
run: ./_scripts/buildGovimImage.sh
- name: Run Docker, run!
if: success()
run: ./_scripts/runDockerRun.sh
- name: Tidy up
if: success() || failure()
run: ./_scripts/postRun.sh
- name: Upload artefacts
if: (success() || failure()) && env.CI_UPLOAD_ARTIFACTS == 'true'
uses: actions/upload-artifact@v4
with:
path: /home/runner/.artefacts
name: ${{ matrix.os }}_${{ matrix.go_version }}_${{ matrix.vim_flavor }}_${{ matrix.vim_version }}