-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: codespaces and ci. And added multiple themes
- Loading branch information
Showing
14 changed files
with
836 additions
and
18 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
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,86 @@ | ||
name: ci-dev.yml | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
if: ${{ github.actor != 'dependabot[bot]' }} | ||
name: Test using Playwright | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: main | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 17 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
npm install | ||
npx playwright install | ||
- name: Install Playwright Browser | ||
run: | | ||
npx playwright install-deps | ||
- name: Run Playwright Tests | ||
continue-on-error: true | ||
run: npm run test | ||
|
||
- name: Convert E2E Report to Coverage Report | ||
run: | | ||
npm install playwright-e2e-coverage-report | ||
wget https://raw.githubusercontent.com/CodeCrowCorp/playwright-e2e-coverage-report/master/scripts/reportConverter.js | ||
chmod u+x reportConverter.js | ||
node ./reportConverter.js | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3.1.1 | ||
if: always() | ||
with: | ||
name: results.json | ||
path: ./results.json | ||
retention-days: 30 | ||
|
||
- name: Send to Codecov | ||
uses: codecov/codecov-action@v3.1.1 | ||
with: | ||
files: ./results.json | ||
flags: "e2ecoverage" | ||
|
||
# deploy: | ||
# if: ${{ github.actor != 'dependabot[bot]' }} | ||
# name: Deploy to Cloudflare Pages (Dev) | ||
# needs: [test] | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: read | ||
# deployments: write | ||
|
||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Install Node | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 17 | ||
|
||
# - name: Install NPM and build | ||
# run: npm install && npm run build | ||
|
||
# - name: Publish | ||
# uses: cloudflare/wrangler-action@2.0.0 | ||
# with: | ||
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
# command: pages publish ".svelte-kit/cloudflare" --project-name=cro-website |
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,112 @@ | ||
name: ci-prod.yml | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
deployments: write | ||
|
||
jobs: | ||
test: | ||
if: ${{ github.actor != 'dependabot[bot]' }} | ||
name: Test using Playwright | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: main | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 17 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
npm install | ||
npx playwright install | ||
- name: Install Playwright Browser | ||
run: | | ||
npx playwright install-deps | ||
- name: Run Playwright Tests | ||
continue-on-error: true | ||
run: npm run test | ||
|
||
- name: Convert E2E Report to Coverage Report | ||
run: | | ||
npm install playwright-e2e-coverage-report | ||
wget https://raw.githubusercontent.com/CodeCrowCorp/playwright-e2e-coverage-report/master/scripts/reportConverter.js | ||
chmod u+x reportConverter.js | ||
node ./reportConverter.js | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3.1.1 | ||
if: always() | ||
with: | ||
name: results.json | ||
path: ./results.json | ||
retention-days: 30 | ||
|
||
- name: Send to Codecov | ||
uses: codecov/codecov-action@v3.1.1 | ||
with: | ||
files: ./results.json | ||
flags: "e2ecoverage" | ||
|
||
# deploy: | ||
# if: ${{ github.actor != 'dependabot[bot]' }} | ||
# name: Deploy to Cloudflare Pages (Production) | ||
# needs: [test] | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: read | ||
# deployments: write | ||
|
||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Install Node | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 17 | ||
|
||
# - name: Install NPM and build | ||
# run: npm install && npm run build | ||
|
||
# - name: Publish | ||
# uses: cloudflare/wrangler-action@2.0.0 | ||
# with: | ||
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
# command: pages publish ".svelte-kit/cloudflare" --project-name=cro-website | ||
|
||
# create-tag: | ||
# if: ${{ github.actor != 'dependabot[bot]' }} | ||
# name: Create Tag and Release | ||
# runs-on: ubuntu-latest | ||
# needs: [deploy] | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: Get NPM version | ||
# id: package-version | ||
# uses: martinbeentjes/npm-get-version-action@main | ||
|
||
# - name: Create a tag and release | ||
# uses: ncipollo/release-action@v1.11.2 | ||
# with: | ||
# tag: ${{ steps.package-version.outputs.current-version }} | ||
# name: v${{ steps.package-version.outputs.current-version }} | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# generateReleaseNotes: true | ||
# continue-on-error: true |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<br> | ||
|
||
<h3 align="center"> | ||
A Svelte port of the Code Crow project | ||
Svelte port of cro-website | ||
</h3> | ||
|
||
<br> | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.