Skip to content

Commit

Permalink
Run verification on pull requests (#29)
Browse files Browse the repository at this point in the history
* Run verification on prs

* Fix sample data
  • Loading branch information
trond-snekvik authored Nov 13, 2023
1 parent c635cdd commit 74f9dd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pages-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Run build job on pull requests. Deploy is skipped
pull_request:
types: [opened, synchronize, reopened]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -79,6 +82,7 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: success() && github.ref == 'refs/heads/main'
needs: build
steps:
- name: Deploy to GitHub Pages
Expand Down
1 change: 1 addition & 0 deletions site/src/sampleData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function createFakeApp(): AppIndex['apps'][number] {
license: faker.word.verb(),
tags: faker.helpers.arrayElements(validTags),
watchers: faker.number.int({ max: 10 }),
stars: faker.number.int({ max: 10 }),
manifest: faker.lorem.word(),
owner: faker.helpers.arrayElement(companyIds),
repo: `https://github.com/${faker.lorem.slug()}/${id}`,
Expand Down

0 comments on commit 74f9dd4

Please sign in to comment.