diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e69de29..ac4cc64 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ + # Name of workflow + name: Lint workflow + # Trigger workflow on all pull requests + on: + pull_request: + branches: + - dev + - main + # Jobs to carry out + jobs: + test: + # Operating system to run job on + runs-on: ubuntu-latest + # Steps in job + steps: + # Get code from repo + - name: Checkout code + uses: actions/checkout@v3 + # Install NodeJS + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + # Build the app + - name: 🧰 install deps + run: npm install + - name: Run lint + run: npm run lint