Skip to content

adding tests for switch / pattern matching (wip) #626

adding tests for switch / pattern matching (wip)

adding tests for switch / pattern matching (wip) #626

Workflow file for this run

name: Build, IntelliJ-Haxe-plugin
on:
push:
branches:
- 'master'
- 'develop'
- 'feature/*'
pull_request:
branches:
- 'master'
- 'develop'
- 'feature/*'
jobs:
Build:
strategy:
fail-fast: false # set this to true if you want to cancel all builds if one fails.
matrix:
IDEA_VERSION: [2024.1]
OS: [macos-13, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.OS }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Set up Haxe
uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.3.4
- name: Test haxe
run: haxe -version
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Cache intelliJ downloads
uses: actions/cache@v3
with:
path: $GITHUB_WORKSPACE/idea
key: ${{ matrix.IDEA_VERSION }}-idea-${{ hashFiles('ideaIU-${{ matrix.IDEA_VERSION }}/**') }}
restore-keys: ${{ matrix.IDEA_VERSION }}-idea
- name: Build with Gradle (windows)
if: ${{ matrix.os == 'windows-latest'}}
run: .\gradlew.bat clean test buildPlugin verifyPlugin
- name: Build with Gradle (linux/mac)
if: ${{ matrix.os != 'windows-latest'}}
run: ./gradlew clean test buildPlugin verifyPlugin