This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
forked from thoughtworks/build-your-own-radar
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 'pnpm install' | ||
description: 'Doing installs' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: 'Setting up Node' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
|
||
# Should pick pnpm verison based on `.packageManager` in package.json | ||
- uses: pnpm/action-setup@v4 | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: pnpm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CD Github Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy-github-pages: | ||
runs-on: ubuntu-latest | ||
|
||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
|
||
# Deploy to the github-pages environment | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
steps: | ||
- name: 'Checking Out Code' | ||
uses: actions/checkout@v4 | ||
|
||
- name: 'Installing Dependencies' | ||
uses: ./.github/actions/install | ||
|
||
- name: 'Build' | ||
run: pnpm --filter "capra-fagradar" build | ||
|
||
- name: 'upload' | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./capra-fagradar/dist | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: 'Tests' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checking Out Code' | ||
uses: actions/checkout@v4 | ||
|
||
- name: 'Installing Dependencies' | ||
uses: ./.github/actions/install | ||
|
||
- name: 'Running Unit Tests' | ||
run: pnpm --filter "capra-fagradar" test | ||
|
||
build: | ||
name: 'Builds' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checking Out Code' | ||
uses: actions/checkout@v4 | ||
|
||
- name: 'Installing Dependencies' | ||
uses: ./.github/actions/install | ||
|
||
- name: 'Building' | ||
run: pnpm --filter "capra-fagradar" build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters