-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (44 loc) · 1.24 KB
/
build-jasypt-go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build Jasypt-Go Package
on:
workflow_dispatch:
release:
types: [ released ]
push:
branches:
- master
# paths:
# - '**/github.com/alice52/viper-go/**'
# - '.github/workflows/build-viper-go.yml'
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-latest', 'macOS-latest' ]
go: [ '1.19.x', '1.20.x', '1.21.x' ] # '1.18.x',
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, 'ci skip')"
env:
PROJECT_PREFIX: github.com/alice52
steps:
- name: Export Global Var
run: |
echo "PROJECT_HOME=$PWD" >> $GITHUB_ENV
- name: Checkout Code
uses: actions/checkout@v4
- uses: WillAbides/setup-go-faster@v1.12.0
with:
go-version: ${{ matrix.go }}
- name: Build Jasypt-Go Package
run: |
PROJECT_NAME=jasypt-go
# cd $PROJECT_HOME/$PROJECT_PREFIX/$PROJECT_NAME
go build ./...
go test ./...
# - name: Upload Artifact
# uses: actions/upload-artifact@v3
# with:
# name: ${{ matrix.os }}-${{ matrix.go }}-Jasypt-Go
# path: ${{ github.workspace }}/**/Jasypt-Go
# retention-days: 1