Produce build for every pull request
This commit is contained in:
25
.github/workflows/abs_integration_test.yml
vendored
25
.github/workflows/abs_integration_test.yml
vendored
@@ -1,25 +0,0 @@
|
|||||||
name: Azure Blob Store Integration Tests
|
|
||||||
on: pull_request
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
abs-integration-test:
|
|
||||||
name: Run Integration Tests
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: '1.17'
|
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/go/pkg/mod
|
|
||||||
key: ${{ inputs.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: ${{ inputs.os }}-go-
|
|
||||||
|
|
||||||
- run: go test -v -run=TestReplicaClient ./integration -replica-type abs
|
|
||||||
env:
|
|
||||||
LITESTREAM_ABS_ACCOUNT_NAME: ${{ secrets.LITESTREAM_ABS_ACCOUNT_NAME }}
|
|
||||||
LITESTREAM_ABS_ACCOUNT_KEY: ${{ secrets.LITESTREAM_ABS_ACCOUNT_KEY }}
|
|
||||||
LITESTREAM_ABS_BUCKET: integration
|
|
||||||
30
.github/workflows/gcp_integration_test.yml
vendored
30
.github/workflows/gcp_integration_test.yml
vendored
@@ -1,30 +0,0 @@
|
|||||||
name: GCP Integration Tests
|
|
||||||
on: pull_request
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
gcp-integration-test:
|
|
||||||
name: Run GCP Integration Tests
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: '1.17'
|
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/go/pkg/mod
|
|
||||||
key: ${{ inputs.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: ${{ inputs.os }}-go-
|
|
||||||
|
|
||||||
- name: Extract GCP credentials
|
|
||||||
run: 'echo "$GOOGLE_APPLICATION_CREDENTIALS" > /opt/gcp.json'
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
GOOGLE_APPLICATION_CREDENTIALS: ${{secrets.GOOGLE_APPLICATION_CREDENTIALS}}
|
|
||||||
|
|
||||||
- run: go test -v -run=TestReplicaClient ./integration -replica-type gcs
|
|
||||||
env:
|
|
||||||
GOOGLE_APPLICATION_CREDENTIALS: /opt/gcp.json
|
|
||||||
LITESTREAM_GCS_BUCKET: integration.litestream.io
|
|
||||||
127
.github/workflows/integration_test.yml
vendored
Normal file
127
.github/workflows/integration_test.yml
vendored
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
name: Integration Tests
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
s3-integration-test:
|
||||||
|
name: Run S3 Integration Tests
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: '1.17'
|
||||||
|
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/go/pkg/mod
|
||||||
|
key: ${{ inputs.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: ${{ inputs.os }}-go-
|
||||||
|
|
||||||
|
- run: go install ./cmd/litestream
|
||||||
|
|
||||||
|
- run: go test -v -run=TestReplicaClient ./integration -replica-type s3
|
||||||
|
env:
|
||||||
|
LITESTREAM_S3_ACCESS_KEY_ID: ${{ secrets.LITESTREAM_S3_ACCESS_KEY_ID }}
|
||||||
|
LITESTREAM_S3_SECRET_ACCESS_KEY: ${{ secrets.LITESTREAM_S3_SECRET_ACCESS_KEY }}
|
||||||
|
LITESTREAM_S3_REGION: us-east-1
|
||||||
|
LITESTREAM_S3_BUCKET: integration.litestream.io
|
||||||
|
|
||||||
|
gcp-integration-test:
|
||||||
|
name: Run GCP Integration Tests
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: '1.17'
|
||||||
|
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/go/pkg/mod
|
||||||
|
key: ${{ inputs.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: ${{ inputs.os }}-go-
|
||||||
|
|
||||||
|
- name: Extract GCP credentials
|
||||||
|
run: 'echo "$GOOGLE_APPLICATION_CREDENTIALS" > /opt/gcp.json'
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
GOOGLE_APPLICATION_CREDENTIALS: ${{secrets.GOOGLE_APPLICATION_CREDENTIALS}}
|
||||||
|
|
||||||
|
- run: go test -v -run=TestReplicaClient ./integration -replica-type gcs
|
||||||
|
env:
|
||||||
|
GOOGLE_APPLICATION_CREDENTIALS: /opt/gcp.json
|
||||||
|
LITESTREAM_GCS_BUCKET: integration.litestream.io
|
||||||
|
|
||||||
|
abs-integration-test:
|
||||||
|
name: Run Azure Blob Store Integration Tests
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: '1.17'
|
||||||
|
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/go/pkg/mod
|
||||||
|
key: ${{ inputs.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: ${{ inputs.os }}-go-
|
||||||
|
|
||||||
|
- run: go test -v -run=TestReplicaClient ./integration -replica-type abs
|
||||||
|
env:
|
||||||
|
LITESTREAM_ABS_ACCOUNT_NAME: ${{ secrets.LITESTREAM_ABS_ACCOUNT_NAME }}
|
||||||
|
LITESTREAM_ABS_ACCOUNT_KEY: ${{ secrets.LITESTREAM_ABS_ACCOUNT_KEY }}
|
||||||
|
LITESTREAM_ABS_BUCKET: integration
|
||||||
|
|
||||||
|
# sftp-integration-test:
|
||||||
|
# name: Run SFTP Integration Tests
|
||||||
|
# runs-on: ubuntu-18.04
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/checkout@v2
|
||||||
|
#
|
||||||
|
# - uses: actions/setup-go@v2
|
||||||
|
# with:
|
||||||
|
# go-version: '1.17'
|
||||||
|
#
|
||||||
|
# - uses: actions/cache@v2
|
||||||
|
# with:
|
||||||
|
# path: ~/go/pkg/mod
|
||||||
|
# key: ${{ inputs.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
|
# restore-keys: ${{ inputs.os }}-go-
|
||||||
|
#
|
||||||
|
# - name: Extract SSH key
|
||||||
|
# run: 'echo "$LITESTREAM_SFTP_KEY" > /opt/id_ed25519'
|
||||||
|
# shell: bash
|
||||||
|
# env:
|
||||||
|
# LITESTREAM_SFTP_KEY: ${{secrets.LITESTREAM_SFTP_KEY}}
|
||||||
|
#
|
||||||
|
# - name: Run sftp tests
|
||||||
|
# run: go test -v -run=TestReplicaClient ./integration -replica-type sftp
|
||||||
|
# env:
|
||||||
|
# LITESTREAM_SFTP_HOST: ${{ secrets.LITESTREAM_SFTP_HOST }}
|
||||||
|
# LITESTREAM_SFTP_USER: ${{ secrets.LITESTREAM_SFTP_USER }}
|
||||||
|
# LITESTREAM_SFTP_KEY_PATH: /opt/id_ed25519
|
||||||
|
# LITESTREAM_SFTP_PATH: ${{ secrets.LITESTREAM_SFTP_PATH }}
|
||||||
|
|
||||||
|
long-running-test:
|
||||||
|
name: Run Long-Running Test
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: '1.17'
|
||||||
|
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/go/pkg/mod
|
||||||
|
key: ${{ inputs.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: ${{ inputs.os }}-go-
|
||||||
|
|
||||||
|
- run: go install ./cmd/litestream
|
||||||
|
|
||||||
|
- run: go test -v -run=TestCmd_Replicate_LongRunning ./integration -long-running-duration 1m
|
||||||
23
.github/workflows/long_running_test.yml
vendored
23
.github/workflows/long_running_test.yml
vendored
@@ -1,23 +0,0 @@
|
|||||||
name: Long-Running Unit Test
|
|
||||||
on: pull_request
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
name: Run Long Running Unit Test
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: '1.17'
|
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/go/pkg/mod
|
|
||||||
key: ${{ inputs.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: ${{ inputs.os }}-go-
|
|
||||||
|
|
||||||
- run: go install ./cmd/litestream
|
|
||||||
|
|
||||||
- run: go test -v -run=TestCmd_Replicate_LongRunning ./integration -long-running-duration 1m
|
|
||||||
84
.github/workflows/release.linux.yml
vendored
84
.github/workflows/release.linux.yml
vendored
@@ -2,41 +2,68 @@ on:
|
|||||||
release:
|
release:
|
||||||
types:
|
types:
|
||||||
- created
|
- created
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
|
||||||
name: release (linux)
|
name: Release (Linux)
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- arch: amd64
|
- arch: amd64
|
||||||
cc: gcc
|
cc: gcc
|
||||||
|
|
||||||
|
- arch: amd64
|
||||||
|
cc: gcc
|
||||||
|
static: true
|
||||||
|
|
||||||
- arch: arm64
|
- arch: arm64
|
||||||
cc: aarch64-linux-gnu-gcc
|
cc: aarch64-linux-gnu-gcc
|
||||||
|
|
||||||
|
- arch: arm64
|
||||||
|
cc: aarch64-linux-gnu-gcc
|
||||||
|
static: true
|
||||||
|
|
||||||
- arch: arm
|
- arch: arm
|
||||||
arm: 6
|
arm: 6
|
||||||
cc: arm-linux-gnueabi-gcc
|
cc: arm-linux-gnueabi-gcc
|
||||||
|
|
||||||
|
- arch: arm
|
||||||
|
arm: 6
|
||||||
|
cc: arm-linux-gnueabi-gcc
|
||||||
|
static: true
|
||||||
|
|
||||||
- arch: arm
|
- arch: arm
|
||||||
arm: 7
|
arm: 7
|
||||||
cc: arm-linux-gnueabihf-gcc
|
cc: arm-linux-gnueabihf-gcc
|
||||||
|
|
||||||
|
- arch: arm
|
||||||
|
arm: 7
|
||||||
|
cc: arm-linux-gnueabihf-gcc
|
||||||
|
static: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: ${{ matrix.arch }}
|
GOARCH: ${{ matrix.arch }}
|
||||||
GOARM: ${{ matrix.arm }}
|
GOARM: ${{ matrix.arm }}
|
||||||
CC: ${{ matrix.cc }}
|
CC: ${{ matrix.cc }}
|
||||||
|
LDFLAGS: ${{ matrix.static && '-extldflags "-static"' || '' }}
|
||||||
|
TAGS: ${{ matrix.static && 'osusergo,netgo,sqlite_omit_load_extension' || '' }}
|
||||||
|
SUFFIX: "${{ matrix.static && '-static' || ''}}"
|
||||||
|
VERSION: "${{ github.event_name == 'release' && github.event.release.name || github.sha }}"
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.16'
|
go-version: '1.17'
|
||||||
|
|
||||||
- id: release
|
|
||||||
uses: bruceadams/get-release@v1.2.2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
|
||||||
|
|
||||||
- name: Install cross-compilers
|
- name: Install cross-compilers
|
||||||
run: |
|
run: |
|
||||||
@@ -50,32 +77,49 @@ jobs:
|
|||||||
|
|
||||||
- name: Build litestream
|
- name: Build litestream
|
||||||
run: |
|
run: |
|
||||||
rm -rf dist
|
rm -rf dist && mkdir -p dist
|
||||||
mkdir -p dist
|
|
||||||
cp etc/litestream.yml etc/litestream.service dist
|
cp etc/litestream.yml etc/litestream.service dist
|
||||||
cat etc/nfpm.yml | LITESTREAM_VERSION=${{ steps.release.outputs.tag_name }} envsubst > dist/nfpm.yml
|
cat etc/nfpm.yml | LITESTREAM_VERSION=${{ env.VERSION }} envsubst > dist/nfpm.yml
|
||||||
CGO_ENABLED=1 go build -ldflags "-s -w -X 'main.Version=${{ steps.release.outputs.tag_name }}'" -o dist/litestream ./cmd/litestream
|
|
||||||
|
CGO_ENABLED=1 go build -ldflags "-s -w ${{ env.LDFLAGS }} -X 'main.Version=${{ env.VERSION }}'" -tags "${{ env.TAGS }}" -o dist/litestream ./cmd/litestream
|
||||||
|
|
||||||
cd dist
|
cd dist
|
||||||
tar -czvf litestream-${{ steps.release.outputs.tag_name }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}.tar.gz litestream
|
tar -czvf litestream-${{ env.VERSION }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}${{ env.SUFFIX }}.tar.gz litestream
|
||||||
../nfpm pkg --config nfpm.yml --packager deb --target litestream-${{ steps.release.outputs.tag_name }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}.deb
|
../nfpm pkg --config nfpm.yml --packager deb --target litestream-${{ env.VERSION }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}${{ env.SUFFIX }}.deb
|
||||||
|
|
||||||
|
- name: Upload binary artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: litestream-${{ env.VERSION }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}${{ env.SUFFIX }}.tar.gz
|
||||||
|
path: dist/litestream-${{ env.VERSION }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}${{ env.SUFFIX }}.tar.gz
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
|
- name: Upload debian artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: litestream-${{ env.VERSION }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}${{ env.SUFFIX }}.deb
|
||||||
|
path: dist/litestream-${{ env.VERSION }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}${{ env.SUFFIX }}.deb
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload release tarball
|
- name: Upload release tarball
|
||||||
uses: actions/upload-release-asset@v1.0.2
|
uses: actions/upload-release-asset@v1.0.2
|
||||||
|
if: github.event_name == 'release'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.release.outputs.upload_url }}
|
upload_url: ${{ steps.release.outputs.upload_url }}
|
||||||
asset_path: ./dist/litestream-${{ steps.release.outputs.tag_name }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}.tar.gz
|
asset_path: ./dist/litestream-${{ env.VERSION }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}${{ env.SUFFIX }}.tar.gz
|
||||||
asset_name: litestream-${{ steps.release.outputs.tag_name }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}.tar.gz
|
asset_name: litestream-${{ env.VERSION }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}${{ env.SUFFIX }}.tar.gz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
|
|
||||||
- name: Upload debian package
|
- name: Upload debian package
|
||||||
uses: actions/upload-release-asset@v1.0.2
|
uses: actions/upload-release-asset@v1.0.2
|
||||||
|
if: github.event_name == 'release'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.release.outputs.upload_url }}
|
upload_url: ${{ steps.release.outputs.upload_url }}
|
||||||
asset_path: ./dist/litestream-${{ steps.release.outputs.tag_name }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}.deb
|
asset_path: ./dist/litestream-${{ env.VERSION }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}${{ env.SUFFIX }}.deb
|
||||||
asset_name: litestream-${{ steps.release.outputs.tag_name }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}.deb
|
asset_name: litestream-${{ env.VERSION }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}${{ env.SUFFIX }}.deb
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
|
|||||||
62
.github/workflows/release.linux_static.yml
vendored
62
.github/workflows/release.linux_static.yml
vendored
@@ -1,62 +0,0 @@
|
|||||||
on:
|
|
||||||
release:
|
|
||||||
types:
|
|
||||||
- created
|
|
||||||
|
|
||||||
name: release (linux/static)
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- arch: amd64
|
|
||||||
cc: gcc
|
|
||||||
- arch: arm64
|
|
||||||
cc: aarch64-linux-gnu-gcc
|
|
||||||
- arch: arm
|
|
||||||
arm: 6
|
|
||||||
cc: arm-linux-gnueabi-gcc
|
|
||||||
- arch: arm
|
|
||||||
arm: 7
|
|
||||||
cc: arm-linux-gnueabihf-gcc
|
|
||||||
|
|
||||||
env:
|
|
||||||
GOOS: linux
|
|
||||||
GOARCH: ${{ matrix.arch }}
|
|
||||||
GOARM: ${{ matrix.arm }}
|
|
||||||
CC: ${{ matrix.cc }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: '1.16'
|
|
||||||
|
|
||||||
- id: release
|
|
||||||
uses: bruceadams/get-release@v1.2.2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
|
||||||
|
|
||||||
- name: Install cross-compilers
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi
|
|
||||||
|
|
||||||
- name: Build litestream
|
|
||||||
run: |
|
|
||||||
rm -rf dist
|
|
||||||
mkdir -p dist
|
|
||||||
CGO_ENABLED=1 go build -ldflags "-s -w -extldflags "-static" -X 'main.Version=${{ steps.release.outputs.tag_name }}'" -tags osusergo,netgo,sqlite_omit_load_extension -o dist/litestream ./cmd/litestream
|
|
||||||
cd dist
|
|
||||||
tar -czvf litestream-${{ steps.release.outputs.tag_name }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}-static.tar.gz litestream
|
|
||||||
|
|
||||||
- name: Upload release tarball
|
|
||||||
uses: actions/upload-release-asset@v1.0.2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.release.outputs.upload_url }}
|
|
||||||
asset_path: ./dist/litestream-${{ steps.release.outputs.tag_name }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}-static.tar.gz
|
|
||||||
asset_name: litestream-${{ steps.release.outputs.tag_name }}-${{ env.GOOS }}-${{ env.GOARCH }}${{ env.GOARM }}-static.tar.gz
|
|
||||||
asset_content_type: application/gzip
|
|
||||||
28
.github/workflows/s3_integration_test.yml
vendored
28
.github/workflows/s3_integration_test.yml
vendored
@@ -1,28 +0,0 @@
|
|||||||
name: S3 Integration Tests
|
|
||||||
on: pull_request
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
name: Run S3 Integration Tests
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: '1.17'
|
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/go/pkg/mod
|
|
||||||
key: ${{ inputs.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: ${{ inputs.os }}-go-
|
|
||||||
|
|
||||||
- run: go install ./cmd/litestream
|
|
||||||
|
|
||||||
- run: go test -v -run=TestReplicaClient ./integration -replica-type s3
|
|
||||||
env:
|
|
||||||
LITESTREAM_S3_ACCESS_KEY_ID: ${{ secrets.LITESTREAM_S3_ACCESS_KEY_ID }}
|
|
||||||
LITESTREAM_S3_SECRET_ACCESS_KEY: ${{ secrets.LITESTREAM_S3_SECRET_ACCESS_KEY }}
|
|
||||||
LITESTREAM_S3_REGION: us-east-1
|
|
||||||
LITESTREAM_S3_BUCKET: integration.litestream.io
|
|
||||||
34
.github/workflows/sftp_integration_test.yml.bak
vendored
34
.github/workflows/sftp_integration_test.yml.bak
vendored
@@ -1,34 +0,0 @@
|
|||||||
#name: SFTP Integration Tests
|
|
||||||
#on: pull_request
|
|
||||||
#
|
|
||||||
#jobs:
|
|
||||||
# sftp-integration-test:
|
|
||||||
# name: Run SFTP Integration Tests
|
|
||||||
# runs-on: ubuntu-18.04
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
#
|
|
||||||
# - uses: actions/setup-go@v2
|
|
||||||
# with:
|
|
||||||
# go-version: '1.17'
|
|
||||||
#
|
|
||||||
# - uses: actions/cache@v2
|
|
||||||
# with:
|
|
||||||
# path: ~/go/pkg/mod
|
|
||||||
# key: ${{ inputs.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
# restore-keys: ${{ inputs.os }}-go-
|
|
||||||
#
|
|
||||||
# - name: Extract SSH key
|
|
||||||
# run: 'echo "$LITESTREAM_SFTP_KEY" > /opt/id_ed25519'
|
|
||||||
# shell: bash
|
|
||||||
# env:
|
|
||||||
# LITESTREAM_SFTP_KEY: ${{secrets.LITESTREAM_SFTP_KEY}}
|
|
||||||
#
|
|
||||||
# - name: Run sftp tests
|
|
||||||
# run: go test -v -run=TestReplicaClient ./integration -replica-type sftp
|
|
||||||
# env:
|
|
||||||
# LITESTREAM_SFTP_HOST: ${{ secrets.LITESTREAM_SFTP_HOST }}
|
|
||||||
# LITESTREAM_SFTP_USER: ${{ secrets.LITESTREAM_SFTP_USER }}
|
|
||||||
# LITESTREAM_SFTP_KEY_PATH: /opt/id_ed25519
|
|
||||||
# LITESTREAM_SFTP_PATH: ${{ secrets.LITESTREAM_SFTP_PATH }}
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user