Skip to content

Commit

Permalink
Update unittest.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
DdGnoybab authored Nov 19, 2024
1 parent d1a176d commit aeaf4b8
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/unittest.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
# name: unittest
name: unittest

# on:
# pull_request:
# types: [opened, reopened, synchronize]
# branches:
# - main
# workflow_dispatch:
on:
pull_request:
types: [opened, reopened, synchronize]
branches:
- main
workflow_dispatch:

# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout the code
# uses: actions/checkout@v2
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: 1.21
# - name: Check format
# run: test -z $(gofmt -l .)
# - name: Run testing
# env:
# FEISHU_APP_ID: ${{ secrets.FEISHU_APP_ID }}
# FEISHU_APP_SECRET: ${{ secrets.FEISHU_APP_SECRET }}
# run: |
# touch .env
# go mod download
# go test -v ./...
# - name: Build cmd tool
# run: make
# - name: Build docker image
# run: make image
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Check format
run: test -z $(gofmt -l .)
- name: Run testing
env:
FEISHU_APP_ID: ${{ secrets.FEISHU_APP_ID }}
FEISHU_APP_SECRET: ${{ secrets.FEISHU_APP_SECRET }}
run: |
touch .env
go mod download
go test -v ./...
- name: Build cmd tool
run: make
- name: Build docker image
run: make image

0 comments on commit aeaf4b8

Please sign in to comment.