Skip to content

CI use Go 1.20+21, a couple of past-week dep upgrades (#67) #51

CI use Go 1.20+21, a couple of past-week dep upgrades (#67)

CI use Go 1.20+21, a couple of past-week dep upgrades (#67) #51

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
package: [".", bfsaz, bfsftp, bfsgs, bfss3, bfsscp]
services:
ftp_server:
image: delfer/alpine-ftp-server
ports:
- 7021:21
- 21000-21010:21000-21010
env:
USERS: "ftpuser|ftppass"
ssh_server:
image: sickp/alpine-sshd:7.5-r2
ports:
- 7022:22
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
cache: true
- if: ${{ matrix.package == 'bfsgs' }}
uses: "google-github-actions/auth@v0"
with:
credentials_json: "${{ secrets.GCP_SA_KEY }}"
- if: ${{ matrix.package == 'bfss3' }}
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- run: go test ./...
working-directory: ${{ matrix.package }}
golangci:
runs-on: ubuntu-latest
strategy:
matrix:
package: [".", bfsaz, bfsftp, bfsgs, bfss3, bfsscp]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.x
cache: true
- uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: ${{ matrix.package }}