Reference: Understanding GitHub Actions: Create an Example Workflow
In your repo, create a directory called
.github/workflows/
, and inside there, create an arbitrary named yml file for your workflow. For example,.github/workflows/example-workflow.yml
, with code like:name: learn-github-actions run-name: ${{ github.actor }} is learning GitHub Actions on: [push] jobs: check-bats-version: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: '14' - run: npm install -g bats - run: bats -v
Notice