This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
deps(internal): update actions/checkout action to v3.6.0 #721
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3.6.0 | |
- name: Validate Batect wrapper scripts | |
uses: batect/batect-wrapper-validation-action@v0.4.0 | |
- name: Cache Batect | |
uses: actions/cache@v3.3.1 | |
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@v3.6.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@6.1.0 --package semantic-release@21.1.1 semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |