Skip to content

Update dependencies (#45) #90

Update dependencies (#45)

Update dependencies (#45) #90

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v1
with:
go-version: 1.18
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Install dependencies
run: make install
- name: Go Vet
run: |
go mod download
go vet ./...
- name: Go Test
run: make test
push:
name: Push Docker image to Github Packages
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and push Docker images
uses: docker/build-push-action@v1.1.0
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: wechaty/go-wechaty-getting-started/dingdongbot
tag_with_ref: true