Skip to content

turboBasic is testing out GitHub Actions 🚀 #213

turboBasic is testing out GitHub Actions 🚀

turboBasic is testing out GitHub Actions 🚀 #213

Workflow file for this run

# yamllint disable rule:empty-lines
name: Verify
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
- .gitignore
- .github/**
- .idea/**
- .vscode/**
pull_request:
branches:
- main
jobs:
unit-and-integration-test:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- uses: actions/checkout@v4
with:
clean: false
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- run: ls -AlF ${{ github.workspace }}
- run: ${{ github.workspace }}/dev all-test
- run: echo "🍏 This job's status is ${{ job.status }}."
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: ls ${{ github.workspace }}
- name: MegaLinter
id: ml
# You can override MegaLinter flavor used to have faster performances
# More info at https://megalinter.io/flavors/
uses: oxsecurity/megalinter/flavors/[email protected]
env:
# All available variables are described in documentation
# https://megalinter.io/configuration/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # Validates all source when push on main, else just the git diff with main. Override with true if you always want to lint all sources
- if: github.event_name == 'pull_request'
name: Setup Node for Commit Linter
uses: actions/setup-node@v4
with:
node-version: 21.x
- if: github.event_name == 'pull_request'
run: npm install
- if: github.event_name == 'pull_request'
name: Validate all commits from PR
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose