Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove generated distributions files from git
- Move all ci tests from travis to github actions - Remove generated distributions in dist directory from git - Adapt release howto - Fix packaging, some packages contained unnecessary files Motivation Removing the generated distribution files from git, removes some complexity from the build and publish process, because it's not required anymore to generate and commit distributions when bumping and tagging the version. It's only required to change the version in the package.json and set a git tag, what is done by lerna version. I hope, this pr is not breaking anything, but the packaged tars should look pretty much the same. The PR is the next step to make the publish process more robust, less error prone and a preparation for moving it to ci.
- Loading branch information
Showing
149 changed files
with
361 additions
and
187,386 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
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,11 @@ | ||
name: Release | ||
|
||
on: | ||
release | ||
|
||
jobs: | ||
build: | ||
name: 'test release' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "Hello release"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
name: js-joda build and test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-test: | ||
name: Build and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup node 14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: ${{ runner.OS }}-node- | ||
- name: Install and bootstrap | ||
run: | | ||
npm install; | ||
npx lerna clean -y; | ||
npx lerna link; | ||
npx lerna bootstrap --no-ci; | ||
- name: Build | ||
run: | | ||
set -e; | ||
npx lerna run --stream build-dist; | ||
npx lerna run --stream build-locale-dist; | ||
- name: Test | ||
run: | | ||
npx lerna run --stream lint; | ||
npm run build-esdoc; | ||
npx lerna run --stream test; | ||
npx lerna run --stream test-ts-definitions; | ||
npx lerna run --stream test-coverage; | ||
npx lerna run --concurrency 1 --stream test-browser -- -- --browserNoActivityTimeout 20000; | ||
npm run build-test-coverage-report; | ||
- name: Push coverage to coveralls | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
run: | | ||
cat ./build/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js; | ||
sauce: | ||
name: Saucelabs Tests (non forked pr's only) | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup node 14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: ${{ runner.OS }}-node- | ||
- name: Setup sauce connect | ||
uses: saucelabs/sauce-connect-action@v1 | ||
with: | ||
username: ${{ secrets.SAUCE_USERNAME }} | ||
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }} | ||
tunnelIdentifier: github-action-tunnel | ||
scVersion: 4.6.4 | ||
- name: Install and bootstrap | ||
run: | | ||
npm install; | ||
npx lerna clean -y; | ||
npx lerna link; | ||
npx lerna bootstrap --no-ci; | ||
- name: Build | ||
run: | | ||
set -e; | ||
npx lerna run --stream build-dist; | ||
npx lerna run --stream build-locale-dist; | ||
- name: karma tests with sauce | ||
env: | ||
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} | ||
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} | ||
run: | | ||
set -e; | ||
npx lerna run --stream test-saucelabs; | ||
# dump-env: | ||
# name: Dump environment and context | ||
# runs-on: ubuntu-latest | ||
# if: ${{ false }} | ||
# steps: | ||
# - name: dump github context | ||
# env: | ||
# GITUB_CONTEXT: ${{ toJson(github) }} | ||
# run: echo "$GITUB_CONTEXT" | ||
# - name: dump default env | ||
# run: export |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ yarn.lock | |
|
||
# build output | ||
build | ||
dist | ||
tmp | ||
.nyc_output | ||
|
||
|
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
git add docs | ||
set +e # Grep succeeds with nonzero exit codes to show results. | ||
git status | grep modified | ||
if [ $? -eq 0 ] | ||
then | ||
set -e | ||
git commit -m "docs updated on - $(date)" || true | ||
git push || true | ||
else | ||
set -e | ||
echo "No changes since last run" | ||
fi |
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
Oops, something went wrong.