Skip to content

Commit

Permalink
Merge pull request #134 from Ilhasoft/update/9.2.2
Browse files Browse the repository at this point in the history
Update/9.2.2
  • Loading branch information
rasoro authored Jan 9, 2025
2 parents 8b9f44f + 50467dc commit 450c0f4
Show file tree
Hide file tree
Showing 287 changed files with 9,234 additions and 8,876 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-mailroom-push-tag-india-ire.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
elif grep -qs -e '^.*.*-staging' <<< "${TAG}" ; then
echo "Found environment: STAGING - ${TAG}"
echo "ENVIRONMENT=staging" | tee -a "${GITHUB_ENV}"
exit 1 # stop action
elif grep -qs -e '^.*.*' <<< "${TAG}" ; then
echo "No environment found, assuming: PRODUCTION - ${TAG}"
echo "ENVIRONMENT=production" | tee -a "${GITHUB_ENV}"
Expand Down
31 changes: 16 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI
on: [push, pull_request]
env:
go-version: "1.21.x"
go-version: "1.22.x"
jobs:
test:
name: Test
Expand All @@ -20,16 +20,17 @@ jobs:
- 5432:5432
options: --name textit-postgres-1 --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
elastic:
image: elasticsearch:7.17.9
ports:
- 9200:9200
- 9300:9300
env:
discovery.type: single-node

image: elasticsearch:8.13.4
ports:
- 9200:9200
env:
discovery.type: single-node
xpack.security.enabled: false
options: --health-cmd "curl http://localhost:9200/_cluster/health" --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Linux packages
run: |
Expand All @@ -45,7 +46,7 @@ jobs:
psql -h localhost -U postgres --no-password -c "CREATE DATABASE mailroom_test;"
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.go-version }}

Expand All @@ -56,7 +57,7 @@ jobs:
- name: Upload coverage
if: success()
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
Expand All @@ -68,7 +69,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -80,20 +81,20 @@ jobs:
cp ./docs/en-us/*.* docs/
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.go-version }}

- name: Publish release
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
if: ${{ !contains(github.ref, '-') }}
with:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish non-master release
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
if: contains(github.ref, '-')
with:
args: release --clean --skip-validate
Expand Down
19 changes: 10 additions & 9 deletions goreleaser.yml → .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
build:
main: ./cmd/mailroom/main.go
binary: mailroom
goos:
- darwin
- linux
goarch:
- amd64
- arm64
version: 2
builds:
- main: ./cmd/mailroom/main.go
binary: mailroom
goos:
- darwin
- linux
goarch:
- amd64
- arm64

changelog:
filters:
Expand Down
Loading

0 comments on commit 450c0f4

Please sign in to comment.