-
-
Notifications
You must be signed in to change notification settings - Fork 34
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 #41 from nut-tree/feature/40/github_actions
Feature/40/GitHub actions
- Loading branch information
Showing
13 changed files
with
207 additions
and
156 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,10 @@ | ||
"//registry.npmjs.org/:_authToken=$env:NPM_TOKEN`n" | out-file "$env:userprofile\.npmrc" -Encoding ASCII | ||
npm whoami | ||
|
||
$timestamp = Get-Date -Format yyyyMMddhhmmss | ||
$patchVersion = (npm --no-git-tag version patch) | ||
$nextVersion = "${patchVersion}-next.${timestamp}".Substring(1) | ||
echo $nextVersion | ||
|
||
npm version --no-git-tag -f $nextVersion | ||
npm run publish:next |
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.
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,41 @@ | ||
name: Run CI | ||
on: | ||
push: | ||
branches-ignore: | ||
- develop | ||
- release/** | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
node: [ 10, 12, 14 ] | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
- name: Set up node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{matrix.node}} | ||
- name: Configure Linux environment | ||
if: ${{matrix.os == 'ubuntu-latest'}} | ||
run: | | ||
sudo apt-get install -y cmake libx11-dev zlib1g-dev libpng-dev libxtst-dev g++-4.8 gcc-4.8 | ||
export CXX=g++-4.8 && $CXX --version | ||
- name: Install | ||
run: npm run patch && npm i | ||
- name: Build | ||
run: npm run build:release | ||
- name: Run tests | ||
uses: GabrielBB/xvfb-action@v1 | ||
with: | ||
working-directory: ./test/ | ||
run: npm cit | ||
- name: Run window tests | ||
uses: GabrielBB/xvfb-action@v1 | ||
with: | ||
working-directory: ./test/window-integration-tests | ||
run: npm cit |
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,72 @@ | ||
name: Create snapshot release | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
- name: Set up node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{matrix.node}} | ||
- name: Configure Linux environment | ||
if: ${{matrix.os == 'ubuntu-latest'}} | ||
run: | | ||
sudo apt-get install -y cmake libx11-dev zlib1g-dev libpng-dev libxtst-dev g++-4.8 gcc-4.8 | ||
export CXX=g++-4.8 && $CXX --version | ||
- name: Install | ||
run: npm run patch && npm i | ||
- name: Build | ||
run: npm run build:release | ||
- name: Run tests | ||
uses: GabrielBB/xvfb-action@v1 | ||
with: | ||
working-directory: ./test/ | ||
run: npm cit | ||
- name: Run window tests | ||
uses: GabrielBB/xvfb-action@v1 | ||
with: | ||
working-directory: ./test/window-integration-tests | ||
run: npm cit | ||
|
||
deploy: | ||
needs: | ||
- test | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
- name: Set up node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- name: Configure Linux environment | ||
if: ${{matrix.os == 'ubuntu-latest'}} | ||
run: | | ||
sudo apt-get install -y cmake libx11-dev zlib1g-dev libpng-dev libxtst-dev g++-4.8 gcc-4.8 | ||
export CXX=g++-4.8 && $CXX --version | ||
- name: Install | ||
run: npm run patch && npm i | ||
- name: Publish snapshot release | ||
if: ${{matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'}} | ||
run: ./.build/pre-release.sh | ||
shell: bash | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Publish Windows snapshot release | ||
if: ${{matrix.os == 'windows-latest'}} | ||
run: ./.build/pre-release.ps1 | ||
shell: powershell | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_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,65 @@ | ||
name: Create tagged release | ||
on: | ||
push: | ||
tags: | ||
- v*.*.* | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
node: [ 10, 12, 14 ] | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
- name: Set up node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{matrix.node}} | ||
- name: Configure Linux environment | ||
if: ${{matrix.os == 'ubuntu-latest'}} | ||
run: | | ||
sudo apt-get install -y cmake libx11-dev zlib1g-dev libpng-dev libxtst-dev g++-4.8 gcc-4.8 | ||
export CXX=g++-4.8 && $CXX --version | ||
- name: Install | ||
run: npm run patch && npm i | ||
- name: Build | ||
run: npm run build:release | ||
- name: Run tests | ||
uses: GabrielBB/xvfb-action@v1 | ||
with: | ||
working-directory: ./test/ | ||
run: npm cit | ||
- name: Run window tests | ||
uses: GabrielBB/xvfb-action@v1 | ||
with: | ||
working-directory: ./test/window-integration-tests | ||
run: npm cit | ||
|
||
deploy: | ||
needs: | ||
- test | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
- name: Set up node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- name: Configure Linux environment | ||
if: ${{matrix.os == 'ubuntu-latest'}} | ||
run: | | ||
sudo apt-get install -y cmake libx11-dev zlib1g-dev libpng-dev libxtst-dev g++-4.8 gcc-4.8 | ||
export CXX=g++-4.8 && $CXX --version | ||
- name: Install | ||
run: npm run patch && npm i | ||
- name: Publish tagged release | ||
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.