forked from quentinlampin/ngx-openlayers
-
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.
ci: use github actions instead of travis
- Loading branch information
Showing
5 changed files
with
107 additions
and
0 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,62 @@ | ||
on: | ||
workflow_call: | ||
|
||
env: | ||
NODE_JS_VERSION: 12 | ||
|
||
jobs: | ||
install-and-scan-deps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{env.NODE_JS_VERSION}} | ||
cache: 'yarn' | ||
- uses: actions/cache@v3 | ||
with: | ||
key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||
path: '**/node_modules' | ||
- run: yarn config get cacheFolder | ||
- run: yarn --frozen-lockfile | ||
- run: yarn run improved-yarn-audit --min-severity high || true | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{env.NODE_JS_VERSION}} | ||
cache: 'yarn' | ||
- uses: actions/cache@v3 | ||
with: | ||
key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||
path: '**/node_modules' | ||
- run: yarn config get cacheFolder | ||
- run: yarn --frozen-lockfile | ||
- run: yarn lint | ||
needs: | ||
- install-and-scan-deps | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{env.NODE_JS_VERSION}} | ||
cache: 'yarn' | ||
- uses: actions/cache@v3 | ||
with: | ||
key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||
path: '**/node_modules' | ||
- run: yarn --frozen-lockfile | ||
- run: yarn build:lib --prod | ||
- run: yarn build:demo --base-href "/ngx-openlayers/" --progress false | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: build | ||
path: dist/ | ||
needs: | ||
- install-and-scan-deps |
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,31 @@ | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
angular: | ||
uses: ./.github/workflows/angular.yml | ||
release-on-npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: build | ||
path: dist | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{env.NODE_JS_VERSION}} | ||
cache: 'yarn' | ||
registry-url: 'https://registry.npmjs.org' | ||
- uses: actions/cache@v3 | ||
with: | ||
key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||
path: '**/node_modules' | ||
- run: cp projects/ngx-openlayers/CHANGELOG.md dist/ngx-openlayers/CHANGELOG.md | ||
- run: cd dist/ngx-openlayers/ && npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
needs: | ||
- angular |
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,8 @@ | ||
on: | ||
push: | ||
tags-ignore: | ||
- '**' | ||
|
||
jobs: | ||
angular: | ||
uses: ./.github/workflows/angular.yml |
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