Skip to content

Commit

Permalink
ci(test.yml): replace go matrix versions with github variables
Browse files Browse the repository at this point in the history
  • Loading branch information
AsifNawaz-cnic committed Oct 12, 2023
1 parent c3b5068 commit bf03b0a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
# Sequence of patterns matched against refs/heads
branches:
- "master"
- 'master'

jobs:
build:
Expand All @@ -17,14 +17,14 @@ jobs:
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup NodeJS ${{ vars.RTLDEV_MW_CI_NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ vars.RTLDEV_MW_CI_NODE_VERSION }}
node-version: '${{ vars.RTLDEV_MW_CI_NODE_VERSION }}'
check-latest: true
- name: Install dependencies
run: npm ci
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ vars.RTLDEV_MW_CI_GOLANG_VERSION }}
go-version: '${{ vars.RTLDEV_MW_CI_GOLANG_VERSION }}'
check-latest: true
- name: Super Linter Code Base
uses: github/super-linter/slim@v4
uses: github/super-linter/slim@v5
env:
FILTER_REGEX_INCLUDE: "/*|/scripts/*|updateVersion.sh|apiclient.go"
DEFAULT_BRANCH: master
Expand All @@ -46,20 +46,18 @@ jobs:
test_matrix:
strategy:
matrix:
go-version:
- "1.20"
- ${{ vars.RTLDEV_MW_CI_GOLANG_VERSION }}
go-version: ${{ fromJson(vars.RTLDEV_MW_CI_GOLANG_MATRIX) }}

runs-on: ubuntu-latest
needs: test
name: Test Matrix @ GO v${{ matrix.go-version }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/centralnicgroup-opensource/rtldev-middleware-go-sdk/v3

go 1.15
go 1.20
Empty file added go.sum
Empty file.

0 comments on commit bf03b0a

Please sign in to comment.