From 7229603a982e79315a7e70ef0b041d5909e50bf1 Mon Sep 17 00:00:00 2001 From: l4kr Date: Wed, 13 Sep 2023 15:42:48 +0200 Subject: [PATCH] acid testing --- .github/workflows/futon-deploy.yaml | 64 +++++++++-------------------- 1 file changed, 19 insertions(+), 45 deletions(-) diff --git a/.github/workflows/futon-deploy.yaml b/.github/workflows/futon-deploy.yaml index 43dec7f..32251bf 100644 --- a/.github/workflows/futon-deploy.yaml +++ b/.github/workflows/futon-deploy.yaml @@ -1,57 +1,31 @@ ---- -################################# -################################# -## Super Linter GitHub Actions ## -################################# -################################# -name: Lint Code Base +name: Lint -############################# -# Start the job on all push # -############################# on: pull_request: types: [closed] branches: [main] -############### -# Set the Job # -############### jobs: - build: - # Name the Job - name: Lint Code Base - # Set the agent to run on + run-linters: + name: Run linters runs-on: ubuntu-latest - ############################################ - # Grant status permission for MULTI_STATUS # - ############################################ - permissions: - contents: read - packages: read - statuses: write - - ################## - # Load all steps # - ################## steps: - ########################## - # Checkout the code base # - ########################## - - name: Checkout Code + - name: Check out Git repository uses: actions/checkout@v3 - with: - # Full git history is needed to get a proper - # list of changed files within `super-linter` - fetch-depth: 0 - ################################ - # Run Linter against code base # - ################################ - - name: Lint Code Base - uses: super-linter/super-linter@v5 - env: - VALIDATE_ALL_CODEBASE: false - DEFAULT_BRANCH: main - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: 12 + + # 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