-
Notifications
You must be signed in to change notification settings - Fork 32
21 lines (21 loc) · 990 Bytes
/
pr-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Run tests
on:
pull_request:
branches: [ main ]
workflow_dispatch: ~
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@master
- name: yarn install
run: docker run --rm -v ${PWD}:/opt/gcds -w /opt/gcds node:20-alpine yarn install
- name: yarn build
run: docker run --rm -v ${PWD}:/opt/gcds -w /opt/gcds node:20-alpine yarn build
- name: go mod vendor
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend golang:1.21.1-alpine go mod vendor
- name: go build linux
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend golang:1.21.1-alpine go build -buildvcs=false -o ../dist/cassandra-plugin_linux_amd64 .
- name: backend tests
run: docker run --rm -v ${PWD}:/go/src/github.com/ha/gcp -w /go/src/github.com/ha/gcp/backend golang:1.21.1-alpine go test ./...