Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nao1215 committed Jan 8, 2024
1 parent 36a01ae commit 38db0c2
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/linux_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ jobs:

- name: Set up AWS credentials
run: |
echo "[default]" > $HOME/.aws/credentials
echo "aws_access_key_id=${{ secrets.AWS_ACCESS_KEY_ID }}" >> $HOME/.aws/credentials
echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> $HOME/.aws/credentials
echo "[default]" > "$HOME/.aws/credentials"
echo "aws_access_key_id=${{ secrets.AWS_ACCESS_KEY_ID }}" >> "$HOME/.aws/credentials"
echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> "$HOME/.aws/credentials"
- name: Set up AWS config
run: |
echo "[default]" > $HOME/.aws/config
echo "region=us-east-1" >> $HOME/.aws/config
echo "output=json" >> $HOME/.aws/config
echo "endpoint_url=http://localhost:4566" >> $HOME/.aws/config
echo "[default]" > "$HOME/.aws/config"
echo "region=us-east-1" >> "$HOME/.aws/config"
echo "output=json" >> "$HOME/.aws/config"
echo "endpoint_url=http://localhost:4566" >> "$HOME/.aws/config"
- uses: nao1215/actions-hottest@v1
with:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/mac_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,33 @@ jobs:
go-version: "1"
check-latest: true

- name: Setup localstack
env:
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
# https://docs.localstack.cloud/user-guide/ci/github-actions/
run: |
docker compose up -d
echo "Waiting for LocalStack startup..."
sleep 30
echo "Startup complete"
- name: Download dependencies
run: go mod download

- name: Set up AWS credentials
run: |
echo "[default]" > "$HOME/.aws/credentials"
echo "aws_access_key_id=${{ secrets.AWS_ACCESS_KEY_ID }}" >> "$HOME/.aws/credentials"
echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> "$HOME/.aws/credentials"
- name: Set up AWS config
run: |
echo "[default]" > "$HOME/.aws/config"
echo "region=us-east-1" >> "$HOME/.aws/config"
echo "output=json" >> "$HOME/.aws/config"
echo "endpoint_url=http://localhost:4566" >> "$HOME/.aws/config"
- name: Run unit test
run: |
go mod download
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/windows_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,33 @@ jobs:
go-version: "1"
check-latest: true

- name: Setup localstack
env:
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
# https://docs.localstack.cloud/user-guide/ci/github-actions/
run: |
docker compose up -d
echo "Waiting for LocalStack startup..."
sleep 30
echo "Startup complete"
- name: Download dependencies
run: go mod download

- name: Set up AWS credentials
run: |
echo "[default]" > "$HOME/.aws/credentials"
echo "aws_access_key_id=${{ secrets.AWS_ACCESS_KEY_ID }}" >> "$HOME/.aws/credentials"
echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> "$HOME/.aws/credentials"
- name: Set up AWS config
run: |
echo "[default]" > "$HOME/.aws/config"
echo "region=us-east-1" >> "$HOME/.aws/config"
echo "output=json" >> "$HOME/.aws/config"
echo "endpoint_url=http://localhost:4566" >> "$HOME/.aws/config"
- name: Run unit test
run: |
go mod download
Expand Down

0 comments on commit 38db0c2

Please sign in to comment.