File tree 3 files changed +61
-7
lines changed
3 files changed +61
-7
lines changed Original file line number Diff line number Diff line change @@ -41,16 +41,16 @@ jobs:
41
41
42
42
- name : Set up AWS credentials
43
43
run : |
44
- echo "[default]" > $HOME/.aws/credentials
45
- echo "aws_access_key_id=${{ secrets.AWS_ACCESS_KEY_ID }}" >> $HOME/.aws/credentials
46
- echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> $HOME/.aws/credentials
44
+ echo "[default]" > " $HOME/.aws/credentials"
45
+ echo "aws_access_key_id=${{ secrets.AWS_ACCESS_KEY_ID }}" >> " $HOME/.aws/credentials"
46
+ echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> " $HOME/.aws/credentials"
47
47
48
48
- name : Set up AWS config
49
49
run : |
50
- echo "[default]" > $HOME/.aws/config
51
- echo "region=us-east-1" >> $HOME/.aws/config
52
- echo "output=json" >> $HOME/.aws/config
53
- echo "endpoint_url=http://localhost:4566" >> $HOME/.aws/config
50
+ echo "[default]" > " $HOME/.aws/config"
51
+ echo "region=us-east-1" >> " $HOME/.aws/config"
52
+ echo "output=json" >> " $HOME/.aws/config"
53
+ echo "endpoint_url=http://localhost:4566" >> " $HOME/.aws/config"
54
54
55
55
- uses : nao1215/actions-hottest@v1
56
56
with :
Original file line number Diff line number Diff line change 25
25
go-version : " 1"
26
26
check-latest : true
27
27
28
+ - name : Setup localstack
29
+ env :
30
+ LOCALSTACK_API_KEY : ${{ secrets.LOCALSTACK_API_KEY }}
31
+ LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
32
+ # https://docs.localstack.cloud/user-guide/ci/github-actions/
33
+ run : |
34
+ docker compose up -d
35
+ echo "Waiting for LocalStack startup..."
36
+ sleep 30
37
+ echo "Startup complete"
38
+
39
+ - name : Download dependencies
40
+ run : go mod download
41
+
42
+ - name : Set up AWS credentials
43
+ run : |
44
+ echo "[default]" > "$HOME/.aws/credentials"
45
+ echo "aws_access_key_id=${{ secrets.AWS_ACCESS_KEY_ID }}" >> "$HOME/.aws/credentials"
46
+ echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> "$HOME/.aws/credentials"
47
+
48
+ - name : Set up AWS config
49
+ run : |
50
+ echo "[default]" > "$HOME/.aws/config"
51
+ echo "region=us-east-1" >> "$HOME/.aws/config"
52
+ echo "output=json" >> "$HOME/.aws/config"
53
+ echo "endpoint_url=http://localhost:4566" >> "$HOME/.aws/config"
54
+
28
55
- name : Run unit test
29
56
run : |
30
57
go mod download
Original file line number Diff line number Diff line change 25
25
go-version : " 1"
26
26
check-latest : true
27
27
28
+ - name : Setup localstack
29
+ env :
30
+ LOCALSTACK_API_KEY : ${{ secrets.LOCALSTACK_API_KEY }}
31
+ LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
32
+ # https://docs.localstack.cloud/user-guide/ci/github-actions/
33
+ run : |
34
+ docker compose up -d
35
+ echo "Waiting for LocalStack startup..."
36
+ sleep 30
37
+ echo "Startup complete"
38
+
39
+ - name : Download dependencies
40
+ run : go mod download
41
+
42
+ - name : Set up AWS credentials
43
+ run : |
44
+ echo "[default]" > "$HOME/.aws/credentials"
45
+ echo "aws_access_key_id=${{ secrets.AWS_ACCESS_KEY_ID }}" >> "$HOME/.aws/credentials"
46
+ echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> "$HOME/.aws/credentials"
47
+
48
+ - name : Set up AWS config
49
+ run : |
50
+ echo "[default]" > "$HOME/.aws/config"
51
+ echo "region=us-east-1" >> "$HOME/.aws/config"
52
+ echo "output=json" >> "$HOME/.aws/config"
53
+ echo "endpoint_url=http://localhost:4566" >> "$HOME/.aws/config"
54
+
28
55
- name : Run unit test
29
56
run : |
30
57
go mod download
You can’t perform that action at this time.
0 commit comments