diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3a9704a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Lint and Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '18' # Ou outra versão compatível + + - run: npm install + + - name: Run ESLint + run: npm run lint