# yaml-language-server: $schema=https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json

stages:
  - test
  - build
  - deploy

test:node:
  stage: test
  before_script:
    - apk add just
    - npm install --global alex prettier write-good
  image: node:alpine
  script:
    - just test

test:rust:
  stage: test
  before_script:
    - apk add just
    - apk add musl-dev # fixes "ld: cannot find crti.o"
  cache:
    paths:
      - target/
  image: rust:alpine
  script:
    - just test
