Compare commits

..

4 Commits

Author SHA1 Message Date
f5856acaa9 Merge branch 'main' into feat/cicd 2024-04-19 21:40:10 +01:00
8ee22830a2 Update ci.yml 2022-08-22 12:15:23 +01:00
18aa090bd6 Update ci.yml 2022-08-22 12:11:10 +01:00
aa76a2b59f Create ci.yml 2022-08-22 12:02:54 +01:00
3 changed files with 40 additions and 5 deletions

39
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,39 @@
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: Install dependencies
run: npm install stylelint htmlhint
- name: Lint
uses: wearerequired/lint-action@v2
with:
stylelint: true
- name: Lint
uses: github/super-linter@v4
continue-on-error: true
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 }}

View File

@ -31,7 +31,7 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v5 uses: actions/configure-pages@v4
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:

View File

@ -47,10 +47,6 @@
</noscript> </noscript>
<!-- End Matomo Code --> <!-- End Matomo Code -->
<!-- Medama -->
<script defer src="https://medama.tainton.uk/script.js"></script>
<!-- End Medama -->
</head> </head>
<body data-spy="scroll" data-target=".site-navbar-target" data-offset="300"> <body data-spy="scroll" data-target=".site-navbar-target" data-offset="300">