diff --git a/.github/workflows/binary.yaml b/.github/workflows/binary.yaml new file mode 100644 index 0000000..54b716a --- /dev/null +++ b/.github/workflows/binary.yaml @@ -0,0 +1,19 @@ +--- +name: upload binary + +on: + release: + types: [published] + +jobs: + release: + name: release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: wangyoucao577/go-release-action@v1.19 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: linux + goarch: amd64 + binary_name: kube2cdk8s diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bc2b322..84cd139 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -18,4 +18,4 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - name: Test - run: go test -v -cover ./... + run: curl -fsSL https://get.pulumi.com | sh && ~/.pulumi/bin/pulumi plugin install resource kubernetes v2.4.2 && go test -v -cover ./...