mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Port workflow changes from v0.11
This commit is contained in:
committed by
Dan Christian Bogos
parent
d8acee74e2
commit
6cd07c5943
24
.github/workflows/build.yaml
vendored
24
.github/workflows/build.yaml
vendored
@@ -1,12 +1,21 @@
|
||||
name: Build & Unit Tests
|
||||
name: build & test
|
||||
|
||||
permissions: {}
|
||||
|
||||
on:
|
||||
# push:
|
||||
# branches: [1.0]
|
||||
push:
|
||||
branches:
|
||||
- 1.0
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- README.md
|
||||
pull_request:
|
||||
branches: [1.0]
|
||||
branches:
|
||||
- 1.0
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- README.md
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
# check-if-duplicate-action:
|
||||
@@ -30,18 +39,17 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v4
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.21.3"
|
||||
go-version: "1.23.x"
|
||||
|
||||
- name: Go Format
|
||||
run: gofmt -s -w . && git diff --exit-code
|
||||
|
||||
- name: Go Vet
|
||||
continue-on-error: true # option will soon be removed
|
||||
run: go vet ./...
|
||||
|
||||
- name: Go Tidy
|
||||
|
||||
19
.github/workflows/integration_tests.yaml
vendored
19
.github/workflows/integration_tests.yaml
vendored
@@ -1,10 +1,19 @@
|
||||
name: Integration Tests
|
||||
name: integration
|
||||
|
||||
on:
|
||||
# push:
|
||||
# branches: [1.0]
|
||||
push:
|
||||
branches:
|
||||
- 1.0
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- README.md
|
||||
pull_request:
|
||||
branches: [1.0]
|
||||
branches:
|
||||
- 1.0
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- README.md
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
# check-if-duplicate-action:
|
||||
@@ -32,7 +41,7 @@ jobs:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.23.0"
|
||||
go-version: "1.23.x"
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
|
||||
Reference in New Issue
Block a user