Skip to content

Commit

Permalink
ci: enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
neilime committed Jan 2, 2024
1 parent 8bd2b42 commit d38afc2
Show file tree
Hide file tree
Showing 5 changed files with 2,664 additions and 2,271 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/__shared-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ name: Shared - Continuous Integration for common tasks

on:
workflow_call:


jobs:
checks:
runs-on: "ubuntu-latest"
runs-on: 'ubuntu-latest'
name: Run checks
steps:
- uses: escemi-tech/[email protected]
Expand All @@ -17,5 +16,5 @@ jobs:
uses: treosh/[email protected]
with:
# no urls needed, since it uses local folder to scan .html files
configPath: ".github/lighthouserc.json"
temporaryPublicStorage: true
configPath: '.github/lighthouserc.json'
temporaryPublicStorage: true
5 changes: 5 additions & 0 deletions .github/workflows/pull-request-ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: Pull request - Continuous Integration

on:
merge_group:
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ci:
name: Continuous Integration
Expand Down
52 changes: 28 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,52 @@ name: πŸš€ Release
on:
push:
branches: [main]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# ci:
# name: Continuous Integration
# uses: ./.github/workflows/__shared-ci.yml
ci:
name: Continuous Integration
uses: ./.github/workflows/__shared-ci.yml

release:
# needs: ci
runs-on: "ubuntu-latest"
needs: ci
runs-on: 'ubuntu-latest'
permissions:
pages: write # to deploy to Pages
pages: write # to deploy to Pages
id-token: write
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
# - name: πŸ—οΈ Build
# uses: escemi-tech/[email protected]
# - uses: actions/upload-pages-artifact@v1
# with:
# path: ./public
- name: πŸ—οΈ Build
uses: escemi-tech/[email protected]
- uses: actions/upload-pages-artifact@v1
with:
path: ./public

# - name: πŸš€ Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v1
- name: πŸš€ Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

# - name: πŸ”­ Check the site is up
# uses: jtalk/url-health-check-action@v2
# with:
# url: ${{ steps.deployment.outputs.page_url }}
- name: πŸ”­ Check the site is up
uses: jtalk/url-health-check-action@v2
with:
url: ${{ steps.deployment.outputs.page_url }}

- uses: actions/checkout@v4

- name: 🚦 Audit URLs using Lighthouse
id: lighthouse-ci-audit
uses: treosh/[email protected]
with:
# urls: ${{ steps.deployment.outputs.page_url }}
urls: https://hoverkraft.cloud
urls: ${{ steps.deployment.outputs.page_url }}
temporaryPublicStorage: true

- uses: ./.github/actions/lighthouse-ci-badge
with:
links: ${{ steps.lighthouse-ci-audit.outputs.links }}
manifest: ${{ steps.lighthouse-ci-audit.outputs.manifest }}
manifest: ${{ steps.lighthouse-ci-audit.outputs.manifest }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<h1 align="center">Welcome to @hoverkraft/landing-page πŸ‘‹</h1>
<p>
<img alt="Version" src="https://img.shields.io/badge/version-0.1.0-blue.svg?cacheSeconds=2592000" />
<a href="https://github.com/hoverkraft/landing-page#readme" target="_blank">
<a title="Read documentation" href="https://github.com/hoverkraft/landing-page#readme" target="_blank">
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
</a>
<a href="https://github.com/hoverkraft/landing-page/graphs/commit-activity" target="_blank">
<a title="View repository activity" href="https://github.com/hoverkraft/landing-page/graphs/commit-activity" target="_blank">
<img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" />
</a>
<!-- lighthouse-badge -->
Expand Down
Loading

0 comments on commit d38afc2

Please sign in to comment.