Skip to content

Add GitHub actions YAML file #1

Add GitHub actions YAML file

Add GitHub actions YAML file #1

name: GitHub Actions
run-name: ${{ github.actor }} is running a workflow on GitHub actions.
on: [push, pull-request]
jobs:
Run linter:
runs-on: ubuntu-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@main
- 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."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Run linter.sh

Check failure on line 17 in .github/workflows/github-actions-demo.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/github-actions-demo.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
run: |
/linting-testing-workflow/linter.sh
- run: echo "This job's status is ${{ job.status }}."