Skip to content

Commit

Permalink
Merge pull request #43 from scratchfoundation/rd/ENG-48/paper-js-to-gha
Browse files Browse the repository at this point in the history
Move PaperJS to GitHub Actions
  • Loading branch information
Ron de las Alas authored Oct 31, 2023
2 parents f561678 + ea2d7b1 commit 0cb100e
Show file tree
Hide file tree
Showing 11 changed files with 2,311 additions and 454 deletions.
69 changes: 0 additions & 69 deletions .circleci/config.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/CODEOWNERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@scratchfoundation/scratch-engineering
56 changes: 56 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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
if: (github.ref == 'refs/heads/master') || (github.ref == 'refs/heads/develop') || startsWith(github.ref, 'refs/heads/hotfix') || startsWith(github.ref, 'refs/heads/release')
run: |
TRAVIS_TAG="${{github.ref_name}}" TRAVIS_COMMIT="${{github.sha}}" travis/deploy-prebuilt.sh
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.nvmrc
node_modules/
dist/*
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v10
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"]
}
Loading

0 comments on commit 0cb100e

Please sign in to comment.