Skip to content

fix(deps): bump golang from 1.22.2-alpine to 1.22.3-alpine #216

fix(deps): bump golang from 1.22.2-alpine to 1.22.3-alpine

fix(deps): bump golang from 1.22.2-alpine to 1.22.3-alpine #216

Workflow file for this run

name: Test
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout with token
if: github.event_name != 'pull_request'
uses: actions/[email protected]
with:
token: ${{ secrets.API_GITHUB_TOKEN }}
- name: Checkout without token
if: github.event_name == 'pull_request'
uses: actions/[email protected]
- name: Fetch Go version
run: |
GO_VERSION=$(perl -ne 'print "$1\n" if /FROM golang:([0-9.]+)/' Dockerfile | head -n1)
[ -n "$GO_VERSION" ] || exit 1
echo "go_version=$GO_VERSION" >> $GITHUB_ENV
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version: "${{ env.go_version }}"
- name: Program Test
run: go test ./...
- name: Version
if: github.event_name != 'pull_request'
uses: cycjimmy/[email protected]
with:
semantic_version: 17.4
env:
GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}