Skip to content

Commit 125a55d

Browse files
committed
testing workflow prelease
1 parent 47fb7ca commit 125a55d

File tree

2 files changed

+53
-9
lines changed

2 files changed

+53
-9
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Lama2 Tests and Beta Release
2+
on:
3+
push:
4+
branches:
5+
- feature/request-time
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Setup Go
14+
uses: actions/setup-go@v3
15+
with:
16+
go-version: '1.19.x'
17+
- name: Install dependencies
18+
run: go mod tidy
19+
- name: Build
20+
run: go build -v ./...
21+
- name: Build l2 binary
22+
run: |
23+
mkdir -p build
24+
go build -o build/l2 -ldflags "-X main.version=1.6.2-beta" l2.go
25+
- name: Test with the Go CLI
26+
run: |
27+
go test -v ./tests/
28+
- name: Create Release
29+
id: create_release
30+
uses: actions/create-release@v1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
tag_name: v1.6.2-beta
35+
release_name: 1.6.2-beta
36+
draft: false
37+
prerelease: true
38+
- name: Upload Release Asset
39+
uses: actions/upload-release-asset@v1
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
upload_url: ${{ steps.create_release.outputs.upload_url }}
44+
asset_path: ./build/l2
45+
asset_name: l2
46+
asset_content_type: application/octet-stream
47+
48+
# - name: Deploy hexmos doc
49+
# run: curl -X POST --fail -F token=${{ secrets.TRIGGER_TOKEN }} -F ref=main https://git.apps.hexmos.com/api/v4/projects/85/trigger/pipeline

.github/workflows/testapp.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Lama2 Tests
22
on: [push]
33

4+
5+
46
jobs:
57
build:
68
runs-on: ubuntu-latest
@@ -15,17 +17,10 @@ jobs:
1517
run: go mod tidy
1618
- name: Build
1719
run: go build -v ./...
18-
- name: Build l2 binary
19-
run: |
20-
mkdir -p build
21-
go build -o build/l2 -ldflags "-X main.version=`git tag --sort=-version:refname | head -n 1`" l2.go
2220
- name: Test with the Go CLI
2321
run: |
22+
go mod tidy
23+
go build -o build/l2 -ldflags "-X main.version=`git tag --sort=-version:refname | head -n 1`" l2.go
2424
go test -v ./tests/
25-
- name: Upload l2 binary
26-
uses: actions/upload-artifact@v3
27-
with:
28-
name: l2
29-
path: build/l2
3025
# - name: Deploy hexmos doc
3126
# run: curl -X POST --fail -F token=${{ secrets.TRIGGER_TOKEN }} -F ref=main https://git.apps.hexmos.com/api/v4/projects/85/trigger/pipeline

0 commit comments

Comments
 (0)