Skip to content

Commit

Permalink
ci: Add paperjs build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron de las Alas committed Oct 30, 2023
1 parent 87c5056 commit c93351c
Show file tree
Hide file tree
Showing 7 changed files with 1,216 additions and 384 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
on:
push: # Runs whenever a commit is pushed to the repository...
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

permissions:
contents: write
jobs:
build-deploy:
runs-on: ubuntu-latest
env:
JVM_OPTS: -Xmx3200m
JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-exports java.base/sun.nio.ch=ALL-UNNAMED
steps:
- uses: actions/checkout@v4
- uses: wagoid/commitlint-github-action@v5
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17
- name: Setup submodule
run: git submodule update --init --recursive
- uses: actions/setup-node@v2
with:
cache: "npm"
node-version-file: ".nvmrc"
- name: Info
run: |
cat <<EOF
Node version: $(node --version)
NPM version: $(npm --version)
GitHub ref: ${{ github.ref }}
GitHub head ref: ${{ github.head_ref }}
EOF
- name: Setup
run: |
# sudo apt update
# sudo apt install libgif-dev
TRAVIS_BRANCH="${{github.ref_name}}" travis/setup-git.sh # Configure git user info
travis/install-assets.sh
npm set progress=false
which gulp || npm install -g gulp-cli
- name: Install NPM Dependencies
run: |
npm ci --legacy-peer-deps
- run: gulp jshint
- run: gulp minify
- run: gulp test
- run: gulp zip
- name: Tag build
run: |
TRAVIS_TAG="${{github.ref_name}}" TRAVIS_COMMIT="${{github.sha}}" travis/deploy-prebuilt.sh
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules/
dist/*


gulp/typescript/typescript-definition-test.js
6 changes: 4 additions & 2 deletions gulp/typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"compilerOptions": {
"target": "ES5",
"strictNullChecks": true
"strictNullChecks": false
},
"files" : [
"typescript-definition-test.ts"
]
],
"exclude": [
"node_modules"]
}
2 changes: 1 addition & 1 deletion gulp/typescript/typescript-definition-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ item.hitTestAll(point);
item.hitTestAll(point, {});
item.matches({});
item.matches(callback);
item.matches(name, {});
item.matches(item.name, {});
item.getItems({});
item.getItems(callback);
item.getItem({});
Expand Down
Loading

0 comments on commit c93351c

Please sign in to comment.