Skip to content

Commit f1e7dda

Browse files
committed
misc: add github action
1 parent ce352b3 commit f1e7dda

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 'Test and Release'
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+\.[0-9]+\.[0-9]+'
7+
8+
env:
9+
GO_VERSION: '^1.20.4'
10+
11+
jobs:
12+
test:
13+
name: 'Test'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: 'Checkout'
17+
uses: actions/checkout@v3
18+
- name: 'Setup go ${{ env.GO_VERSION }}'
19+
uses: actions/setup-go@v3
20+
with:
21+
go-version: ${{ env.GO_VERSION }}
22+
- name: 'Test'
23+
run: 'go test ./...'
24+
25+
release:
26+
name: 'Release'
27+
runs-on: ubuntu-latest
28+
needs:
29+
- test
30+
steps:
31+
- name: 'Checkout'
32+
uses: actions/checkout@v3
33+
- name: 'Setup go ${{ env.GO_VERSION }}'
34+
uses: actions/setup-go@v3
35+
with:
36+
go-version: ${{ env.GO_VERSION }}
37+
- name: 'Release'
38+
run: 'GOPROXY=proxy.golang.org go list -m github.com/its-felix/aws-lambda-go-http-adapter@${{ github.ref_name }}'

0 commit comments

Comments
 (0)