Bump github.com/gofiber/fiber/v2 from 2.40.1 to 2.43.0 #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Memcache Installation test | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.19.x] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Enable CGO | |
run: echo CGO_ENABLED=1 >> ${GITHUB_ENV} | |
- name: Enable Go Modules | |
run: echo GO111MODULE=on >> ${GITHUB_ENV} | |
- name: Set Version | |
run: echo VERSION=0.0.0-githubtest >> ${GITHUB_ENV} | |
- name: Set Build ID | |
run: echo BUILD_ID=${{github.sha}} >> ${GITHUB_ENV} | |
- name: Set Build Time | |
run: echo BUILD_TIME=00000000000000 >> ${GITHUB_ENV} | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: go get -u && go mod tidy | |
- name: Install Memcache | |
run: go install -v -tags="sqlite_userauth" -ldflags "-w -s -X main.VERSION=$VERSION -X main.BUILD_TIME=$BUILD_TIME -X main.BUILD_ID=$BUILD_ID" | |
- name: Start Memcache (non-Windows) | |
if: ${{ matrix.os != 'windows-latest' }} | |
run: nohup memcache start --hostname 127.0.0.1 --port 32080 > /dev/null 2>&1& | |
- name: Start Memcache (Windows) | |
if: ${{ matrix.os == 'windows-latest' }} | |
run: cmd /c "START /b memcache start --hostname 127.0.0.1 --port 32080" | |
- name: Stop Memcache | |
run: memcache stop |