Skip to content

Commit

Permalink
Run build and test actions on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
oNaiPs committed Jun 22, 2023
1 parent 70f6b95 commit d7c796e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 32 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/build-test.yml

This file was deleted.

18 changes: 6 additions & 12 deletions .github/workflows/check-dist.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
# `dist/index.js` is a special file in Actions.
# When you reference an action with `uses:` in a workflow,
# `index.js` is the code that will run.
# For our project, we generate this file through a build process from other source files.
# We need to make sure the checked-in `index.js` actually matches what we expect it to be.
name: Check dist/
name: Build

on:
push:
branches:
- main
paths-ignore:
- '**.md'
- "**.md"
pull_request:
paths-ignore:
- '**.md'
- "**.md"
workflow_dispatch:

jobs:
check-dist:
build:
runs-on: ubuntu-latest

steps:
Expand All @@ -31,10 +26,9 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Rebuild the dist/ directory
- name: Run build pipeline
run: |
yarn run build
yarn run package
yarn run all
- name: Compare the expected and actual dist/ directories
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: 'e2e'
name: "e2e"
on:
push:
branches:
- main
- 'releases/*'
- "releases/*"

jobs:
test-exclude:
Expand Down Expand Up @@ -97,4 +97,4 @@ jobs:
with:
convert: bad
secrets: ${{ toJSON(secrets) }}
continue-on-error: true
continue-on-error: true

0 comments on commit d7c796e

Please sign in to comment.