Test Airship #954
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: Test Airship | |
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
branches: ["master"] | |
schedule: | |
- cron: "0 5 * * *" | |
env: | |
LOGGING_DEFAULT_SHOW_PREFIX: true | |
LOGGING_DEFAULT_LOGGING_LEVEL: TRACE | |
LOGGING_DEFAULT_SHOW_FORMATTING: true | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
target: [js, es6] | |
steps: | |
- name: Setup Maven Action | |
uses: s4u/setup-maven-action@v1.8.0 | |
with: | |
java-version: 11 | |
- uses: actions/checkout@v3 | |
with: | |
path: Airship | |
- name: Download latest Airship | |
uses: FlatLang/fetch-airship@master | |
with: | |
includePrerelease: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Cache Maven dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
key: ${{ runner.os }}-build-${{ env.cache-name }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Build Airship ${{ matrix.target }} | |
working-directory: Airship | |
run: | | |
node ../airship.js install -t ${{ matrix.target }} | |
- name: Delete Airship artifact | |
run: | | |
rm airship.js | |
- name: Build Airship with Airship ${{ matrix.target }} | |
working-directory: Airship | |
run: | | |
node dist/airship.js install -t ${{ matrix.target }} | |
- name: Link Airship | |
working-directory: Airship | |
run: | | |
node dist/airship.js install --link | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: airship.js | |
path: Airship/dist/airship.js | |
- name: Build Airship Tests with Airship ${{ matrix.target }} | |
working-directory: Airship | |
run: | | |
node dist/airship.js install test -t ${{ matrix.target }} | |
- name: Run Airship Tests | |
working-directory: Airship | |
run: | | |
node dist/airship.js run test -t ${{ matrix.target }} | |
- name: Checkout Stability-Test | |
uses: actions/checkout@master | |
with: | |
repository: FlatLang/Stability-Test | |
path: Stability-Test | |
- name: Build Stability-Test with Airship ${{ matrix.target }} | |
working-directory: Stability-Test | |
run: | | |
node ../Airship/dist/airship.js install --link | |
node ../Airship/dist/airship.js install test -t ${{ matrix.target }} | |
- name: Run Stability-Test | |
working-directory: Stability-Test | |
run: | | |
node dist/${{ matrix.target }}/test.js |