diff --git a/.github/workflows/futon-deploy.yaml b/.github/workflows/futon-deploy.yaml index 32251bf..e5af6d5 100644 --- a/.github/workflows/futon-deploy.yaml +++ b/.github/workflows/futon-deploy.yaml @@ -6,26 +6,21 @@ on: branches: [main] jobs: - run-linters: - name: Run linters + lint: runs-on: ubuntu-latest - steps: - - name: Check out Git repository - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v1 + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v2.4.0 with: - node-version: 12 + node-version: '16.x' + - name: Install dependencies + run: npm install + - name: Lint CSS files + run: npx stylelint '**/*.css' + - name: Lint JavaScript files + run: npx eslint '**/*.js' + - name: Lint HTML files + run: npx htmlhint '**/*.html' - # ESLint and Prettier must be in `package.json` - - name: Install Node.js dependencies - run: npm ci - - - name: Run linters - uses: wearerequired/lint-action@v2 - with: - eslint: true - prettier: true - stylelint: true