Skip to content

feat: update CI Go version to 1.19 #25

feat: update CI Go version to 1.19

feat: update CI Go version to 1.19 #25

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Set up Docker
uses: docker-practice/actions-setup-docker@master
- name: Set up Server
run: |
set -x
docker version
docker run -id -p 50051:50051 \
-e CONNECTION_CONFIG_PATH=/config/connection_config.json \
-v $GITHUB_WORKSPACE/config:/config \
-v $GITHUB_WORKSPACE/examples:/data/examples \
--name my-casbin-server-config \
-d casbin/casbin-server
- name: Go Test
run: go test ./...
semantic-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run semantic-release
if: github.repository == 'casbin/casbin-go-client' && github.event_name == 'push'
run: |
export PATH="$(yarn global bin):$PATH"
yarn global add semantic-release
semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}