Skip to content

Change tabs to spaces #116

Change tabs to spaces

Change tabs to spaces #116

name: build-and-test
on:
push:
# all branches
paths-ignore:
- 'documentation/**'
pull_request:
branches:
- main
- master
paths-ignore:
- 'documentation/**'
# This enables the Run Workflow button on the Actions tab.
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Add OD to PATH
run: |
echo "/home/runner/work/v3d/opendylan-2023.1/bin" >> $GITHUB_PATH
- name: Cache OD 2023.1
id: cache-2023-1
uses: actions/cache@v3
with:
path: |
/home/runner/work/v3d/opendylan-2023.1
key: ${{ runner.os }}-2023-1
- name: Cache packages
id: cache-packages
uses: actions/cache@v3
with:
path: |
./_packages
./registry
key: ${{ runner.os }}-${{ hashFiles('**/dylan-package.json') }}
- name: Install Opendylan
if: steps.cache-2023-1.outputs.cache-hit != 'true'
uses: dylan-lang/install-opendylan@v3
with:
version: 2023.1
tag: v2023.1.0
- name: Download dependencies
if: steps.cache-packages.outputs.cache-hit != 'true'
run: dylan update
- name: Build tests
run: dylan build v3d-test
- name: Run tests
run: _build/bin/v3d-test