Skip to content

Commit

Permalink
Merge pull request #19 from bjmccotter7192/some-random-branch
Browse files Browse the repository at this point in the history
feat(99): updating to workflow_run
  • Loading branch information
BJ McCotter authored Aug 11, 2022
2 parents c56b203 + a652a6d commit 45af3d8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x
cache: 'yarn'

- name: Install dependencies
run: yarn install

- name: Build service for testing
run: yarn build

- name: Run Tests
run: yarn test
6 changes: 4 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Yarn publish

on:
push:
branches: [ main ]
workflow_run:
workflows: [Build and Test]
types: [completed]
branches: [main]

jobs:
publish:
Expand Down
2 changes: 2 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export const BJForm = () => {
return (
<div className="custom-text">
Showing a Default Form made with Formik

Adding some more commits to fit.
<DefaultForm/>
</div>
);
Expand Down

0 comments on commit 45af3d8

Please sign in to comment.