Improve workflow (#279) #1272
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: Tornjak CI | |
on: [push, pull_request] | |
jobs: | |
tornjak-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Show trigger info | |
run: | | |
cat <<EOF >>"${GITHUB_STEP_SUMMARY}" | |
# Workflow job info | |
- 🎉 The job was automatically triggered by a ${{ github.event_name }} event. | |
- 🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub! | |
- 🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}. | |
EOF | |
- name: Check out repository code | |
uses: actions/[email protected] | |
- name: Install Golang | |
uses: actions/[email protected] | |
with: | |
go-version: '1.20' | |
- uses: actions/[email protected] | |
with: | |
node-version: '15' | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: v1.53 | |
args: --timeout 7m | |
- name: Run make all | |
run: make all | |
- name: Print job result | |
run: | | |
cat <<EOF >>"${GITHUB_STEP_SUMMARY}" | |
- 🍏 This job's status is ${{ job.status }}. | |
EOF |