From aa76a2b59fa9812110ede28aa59d1489a429d97d Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Mon, 22 Aug 2022 12:02:54 +0100 Subject: [PATCH 1/3] Create ci.yml --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..be72071 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI +on: + push: + branches: [ main ] + pull_request: + types: [opened, synchronize, reopened] + paths-ignore: + - 'renovate.json' + - 'CNAME' + - '.gitignore' + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Lint + uses: wearerequired/lint-action@v2 + with: + stylelint: true + - name: Lint + uses: github/super-linter@v4 + env: + VALIDATE_ALL_CODEBASE: true + VALIDATE_HTML: true + VALIDATE_CSS: true + DEFAULT_BRANCH: main + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} -- 2.47.2 From 18aa090bd6553bfeda32c34ce1f2fee999e32201 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Mon, 22 Aug 2022 12:11:10 +0100 Subject: [PATCH 2/3] Update ci.yml --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be72071..dc60280 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,8 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Install dependencies + run: npm install stylelint htmlhint - name: Lint uses: wearerequired/lint-action@v2 with: -- 2.47.2 From 8ee22830a2fed99e02ff927e6b5d7623cf58c08e Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Mon, 22 Aug 2022 12:15:23 +0100 Subject: [PATCH 3/3] Update ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc60280..d88f3e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,7 @@ jobs: stylelint: true - name: Lint uses: github/super-linter@v4 + continue-on-error: true env: VALIDATE_ALL_CODEBASE: true VALIDATE_HTML: true -- 2.47.2