Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Feb 6, 2024
1 parent 62bad3d commit 08e28bb
Showing 1 changed file with 46 additions and 16 deletions.
62 changes: 46 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,55 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
cache: true

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '>=1.20.2'
cache: true
- name: Test
run: |
export TEST_DEBUG=1
export TEST_EXTRA_TAGS=" "
bash ./scripts/run_tests.sh
- name: Run gofmt
run: |
OUTPUT=`go fmt`; if [ -n "$OUTPUT" ]; then echo "$OUTPUT"; exit 1; fi
- name: Coverage Badge - Generate
if: github.event_name != 'pull_request'
uses: tj-actions/coverage-badge-go@v2
with:
filename: coverage-percent.out

- name: Build
run: |
go build
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v12
id: verify-changed-files
with:
files: README.md

- name: Commit changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md
git commit -m "chore: Update README.md"
- name: Push changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.head_ref }}

- name: Test
run: |
./invitebot --help
services:
mail_server:
image: ghcr.io/deltachat/mail-server-tester:release
ports:
- 3025:25
- 3143:143
- 3465:465
- 3993:993


release:
Expand All @@ -50,7 +80,7 @@ jobs:
- uses: actions/setup-go@v3
if: ${{ github.event_name == 'push' && steps.check-tag.outputs.match == 'true' }}
with:
go-version: '>=1.20.2'
go-version: '1.21'
cache: true
- run: sudo apt install gcc-multilib
- uses: goreleaser/goreleaser-action@v4
Expand Down

0 comments on commit 08e28bb

Please sign in to comment.