mirror of
https://github.com/gofiber/storage.git
synced 2025-12-19 00:38:24 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
63 lines
2.0 KiB
YAML
63 lines
2.0 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
pull_request:
|
|
name: S3
|
|
jobs:
|
|
Tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go-version:
|
|
- 1.14.x
|
|
- 1.16.x
|
|
- 1.19.x
|
|
platform:
|
|
- ubuntu-latest
|
|
- windows-latest
|
|
steps:
|
|
- name: Fetch Repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Redis
|
|
uses: shogo82148/actions-setup-redis@v1
|
|
with:
|
|
redis-version: '6.x'
|
|
auto-start: 'false'
|
|
redis-port: '6379'
|
|
redis-tls-port: '6380'
|
|
|
|
- name: Run Redis
|
|
run: |
|
|
redis-server --tls-port 6380 --port 6379 \
|
|
--tls-cert-file ./redis/tests/tls/redis.crt \
|
|
--tls-key-file ./redis/tests/tls/redis.key \
|
|
--tls-ca-cert-file ./redis/tests/tls/ca.crt&
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: '${{ matrix.go-version }}'
|
|
|
|
- name: Setup Golang caches
|
|
uses: actions/cache@v3
|
|
with:
|
|
# In order:
|
|
# * Module download cache
|
|
# * Build cache (Linux)
|
|
# * Build cache (Mac)
|
|
# * Build cache (Windows)
|
|
path: |
|
|
~/go/pkg/mod
|
|
~/.cache/go-build
|
|
~/Library/Caches/go-build
|
|
~\AppData\Local\go-build
|
|
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-${{ matrix.go-version }}-
|
|
|
|
- name: Run Test
|
|
run: cd ./redis && go test ./... -v -race
|