forked from foambubble/foam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Note deletion, events testing, and improved CI
Added API and events around note deletion Improved github workflows, added logic to avoid duplicate runs in CI and merged build + test jobs Added support for running workflows in multiple environments, commented window-2019 as test don't pass, but they will be fixed in another PR to avoid scope creep here.
- Loading branch information
1 parent
6073bf1
commit 26ab27e
Showing
10 changed files
with
167 additions
and
108 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,48 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
# The following will also make the workflow run on all PRs, internal and external. | ||
# This would create duplicate runs, that we are skipping by adding the "if" to the jobs below. | ||
# See https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012 | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-18.04 | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'foambubble/foam' | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
- name: Install Dependencies | ||
run: yarn | ||
- name: Check Lint Rules | ||
run: yarn lint | ||
|
||
test: | ||
name: Build and Test | ||
strategy: | ||
matrix: | ||
os: [macos-10.15, ubuntu-18.04] # add windows-2019 after fixing tests for it | ||
runs-on: ${{ matrix.os }} | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'foambubble/foam' | ||
env: | ||
OS: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
- name: Install Dependencies | ||
run: yarn | ||
- name: Build Packages | ||
run: yarn build | ||
- name: Run Tests | ||
run: yarn test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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
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