Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

deps: update golang docker tag to v1.21.2 #789

deps: update golang docker tag to v1.21.2

deps: update golang docker tag to v1.21.2 #789

Workflow file for this run

name: Pipeline
on: [push, pull_request]
env:
TERM: xterm-256color
BATECT_ENABLE_TELEMETRY: true
jobs:
build:
name: "Lint and Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.0
- name: Validate Batect wrapper scripts
uses: batect/batect-wrapper-validation-action@v0.4.0
- name: Cache Batect
uses: actions/cache@v3.3.2
with:
path: ~/.batect/cache
key: batect-${{ hashFiles('batect') }}
- name: Check formatting
run: ./batect check-format
- name: Lint code
run: ./batect lint
- name: Test bundle
run: ./batect test
release:
name: "Release"
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'batect/golang-bundle'
needs:
- build
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4.1.0
- name: Setup Node.js
uses: actions/setup-node@v3.8.1
with:
node-version: 18
- name: Create release
run: npx --package conventional-changelog-conventionalcommits@7.0.2 --package semantic-release@22.0.5 semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}