-
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1192 from danger/fb/fs_lookup
PR Suggestions for #991
- Loading branch information
Showing
125 changed files
with
4,850 additions
and
3,638 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,4 @@ | ||
# .gitattributes documentation: https://git-scm.com/docs/gitattributes | ||
|
||
# Resolve 3-way merge conflicts on the CHANGELOG.md file using the union strategy | ||
CHANGELOG.md merge=union |
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 @@ | ||
github: [orta] |
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,36 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "[BUG] " | ||
labels: bug | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. | ||
2. | ||
3. | ||
4. | ||
|
||
**Expected behavior** | ||
<!--- If you're suggesting a change/improvement, tell us how it should work --> | ||
<!--- If danger is behaving incorrectly, please include a link to the spec or documentation that supports that your expected behavior is correct. --> | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Your Environment** | ||
<!--- Include as many relevant details about the environment you experienced the bug in --> | ||
|
||
| software | version | ||
| ---------------- | ------- | ||
| danger.js | | ||
| node | | ||
| npm | | ||
| Operating System | | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,60 @@ | ||
name: CI | ||
on: pull_request | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
# Check out, and set up the node/ruby infra | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
# Get local dependencies & test | ||
- run: yarn install | ||
- run: yarn build | ||
- run: yarn test | ||
|
||
# Validate related tooling | ||
- run: yarn declarations | ||
- run: yarn tsc distribution/danger.d.ts | ||
- run: rm -rf node_modules/@types/babel-* | ||
- run: rm -rf node_modules/@types/babylon | ||
|
||
# Not many Flow users nowadays, so this probably is worth dropping | ||
# if it becomes an issue. | ||
- run: echo "Testing Flow definition file" | ||
- run: yarn build:flow-types | ||
# - run: yarn flow check | ||
|
||
- run: 'echo "This is only for Integration tests on two blank projects"' | ||
|
||
- run: | | ||
mkdir danger_blank_test | ||
cd danger_blank_test | ||
yarn init --yes | ||
yarn add file:.. | ||
echo "warn('I warned you')" > dangerfile.js | ||
echo "Testing a blank Dangerfile on an empty project" | ||
DEBUG="*" yarn danger run --text-only | ||
cd .. | ||
rm -rf danger_blank_test | ||
name: "Make a CRA" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: | | ||
npm install -g create-react-app | ||
create-react-app danger_babel_test | ||
cd danger_babel_test | ||
yarn add file:.. | ||
echo "warn('Expect 2 warnings'); const a = async () => {warn('the other');}; schedule(a)" > dangerfile.js | ||
echo "Testing a blank Dangerfile on a babel CRA project" | ||
DEBUG="*" yarn danger ci --text-only | ||
cd .. | ||
rm -rf danger_babel_test | ||
name: "Make a small babel app" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,28 @@ | ||
name: Release Danger-JS package | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Export tag version | ||
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | ||
|
||
- name: Docker Login | ||
run: echo $PACKAGES_WRITE_TOKEN | docker login ghcr.io -u $USERNAME --password-stdin | ||
env: | ||
PACKAGES_WRITE_TOKEN: ${{ secrets.DOCKER_GITHUB_PASSWORD }} | ||
USERNAME: ${{ secrets.DOCKER_GITHUB_USERNAME }} | ||
|
||
- name: Docker Build | ||
run: docker build -t ghcr.io/danger/danger-js:$VERSION . | ||
|
||
- name: Deploy | ||
run: docker push ghcr.io/danger/danger-js:$VERSION |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.