Improve version support and add support for 1.19 and 1.20. #678
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
javaVersion: [1.8] | |
mcVersionIndex: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
include: | |
- javaVersion: 16 | |
mcVersionIndex: 10 | |
- javaVersion: 17 | |
mcVersionIndex: 11 | |
- javaVersion: 17 | |
mcVersionIndex: 12 | |
- javaVersion: 17 | |
mcVersionIndex: 13 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Setup Java JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.javaVersion }} | |
java-package: jre | |
- name: Install xi | |
run: sudo apt-get install -y libxi-dev libglu1-mesa-dev | |
- run: npm install | |
- env: | |
CIRCLE_NODE_INDEX: ${{ matrix.mcVersionIndex }} | |
CIRCLE_NODE_TOTAL: 12 | |
run: npm test | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: test_picture | |
path: test/test_*.png | |
DeployPages: | |
runs-on: ubuntu-latest | |
needs: build | |
if: ${{ github.event_name == 'push' }} | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | |
with: | |
ref: 'gh-pages' | |
persist-credentials: false | |
- name: Download build | |
uses: actions/download-artifact@v2 | |
with: | |
name: test_picture | |
- name: Create commits | |
run: | | |
git config user.name 'rom1504bot' | |
git config user.email 'rom1504bot@users.noreply.github.com' | |
git add --all | |
git commit --amend -m "Update gh-pages" | |
- name: Deploy 🚀 | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
force: true |