Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test ci changes #2292

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@ jobs:
with:
go-version: ${{ matrix.go-version }}

- uses: actions/checkout@v2
with:
repository: aws/smithy-go
path: tmp-smithy-go
- name: Find smithy-go
env:
TRIGGERING_ACTOR: ${{ github.event.pull_request.head.repo.owner.login }}
RUNNER_TMPDIR: ${{ runner.temp }}
run: ./ci-find-smithy-go.sh

- name: Build and publish smithy-go
working-directory: tmp-smithy-go
working-directory: ${{ runner.temp }}/smithy-go
run: make smithy-publish-local

- name: Cleanup smithy-go
run: rm -rf tmp-smithy-go
run: rm -rf ${{ runner.temp }}/smithy-go

- name: SDK Codegen
run: make smithy-generate
Expand Down
6 changes: 3 additions & 3 deletions ci-find-smithy-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
# - feat-foo-bar
# - feat-foo

if [ -z "$SMITHY_GO_REPOSITORY" ]; then
SMITHY_GO_REPOSITORY=aws/smithy-go
fi
SMITHY_GO_REPOSITORY=$TRIGGERING_ACTOR/smithy-go
echo $SMITHY_GO_REPOSITORY

if [ -z "$RUNNER_TMPDIR" ]; then
echo env RUNNER_TMPDIR is required
Expand Down Expand Up @@ -56,3 +55,4 @@ fi

git clone -b "$matched_branch" "$repository" "$RUNNER_TMPDIR"/smithy-go
SMITHY_GO_SRC=$RUNNER_TMPDIR/smithy-go make gen-mod-replace-smithy-.
echo $SMITHY_GO_SRC
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import java.util.Set;
import java.util.TreeSet;

import software.amazon.smithy.aws.go.codegen.customization.AwsCustomGoDependency;
import software.amazon.smithy.codegen.core.Symbol;
import software.amazon.smithy.go.codegen.GoWriter;
import software.amazon.smithy.go.codegen.SmithyGoDependency;
Expand All @@ -31,7 +30,6 @@
import software.amazon.smithy.go.codegen.integration.HttpProtocolUnitTestResponseGenerator;
import software.amazon.smithy.go.codegen.integration.IdempotencyTokenMiddlewareGenerator;
import software.amazon.smithy.go.codegen.integration.ProtocolGenerator.GenerationContext;
import software.amazon.smithy.model.shapes.Shape;
import software.amazon.smithy.model.shapes.ShapeId;
import software.amazon.smithy.utils.SetUtils;

Expand Down
Loading