Skip to content

Commit

Permalink
Commit just one file instead of node_modules (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott authored Jan 15, 2020
1 parent 1cb7bfa commit 8539ee9
Show file tree
Hide file tree
Showing 683 changed files with 1,596 additions and 142,778 deletions.
11 changes: 5 additions & 6 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

# Do not normalize line endings for the checked in packages we never touch.
node_modules/** -text
*.js text
*.ts text

# Ensure bash shell scripts use LF line endings
*.sh eol=lf
Expand All @@ -23,7 +22,7 @@ node_modules/** -text
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
Expand Down Expand Up @@ -52,9 +51,9 @@ node_modules/** -text

###############################################################################
# diff behavior for common document formats
#
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/checkin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,22 @@ jobs:
check_diff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2

- name: yarn
run: yarn

- name: "yarn run build"
- name: yarn run build
run: yarn run build

# - name: "yarn run test"
# run: yarn run test

- name: "check for uncommitted changes"
# Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed.
- name: check for uncommitted changes
# Ensure no changes.
run: |
git diff --exit-code --stat -- . ':!node_modules' \
git add -u . # compare after applying git EOL normalization
git diff --cached --exit-code --stat \
|| (echo "##[error] found changed files after build. please 'yarn run build'" \
"and check in all changes" \
&& git diff --cached \
&& exit 1)
test:
runs-on: ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
!node_modules/
node_modules/
__tests__/runner/*
nbgv.json
nbgv.json
lib/main.js
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ inputs:
required: false
runs:
using: node12
main: lib/main.js
main: dist/index.js
Loading

0 comments on commit 8539ee9

Please sign in to comment.