gocodebox / lifterlms-rest

LifterLMS REST API Feature Plugin
6 stars 7 forks source link

Create github actions to replace travis to test openapi etc. #241

Open eri-trabiccolo opened 2 years ago

eri-trabiccolo commented 2 years ago

.travis.yml containing the following:

jobs:
  include:
  - name: "Test OpenAPI Spec"
    language: node_js
    node_js: lts/*
    before_install:
    install:
      - npm ci
    script:
      - npm run test
  - stage: deploy
    language: node_js
    node_js: lts/*
    if: branch = trunk AND env(GH_TOKEN) IS present
    before_install:
    install:
      - npm ci
    script: npm run build:docs && npm run gh-pages

has been removed. Those jobs should be replaced with gh actions.

eri-trabiccolo commented 2 years ago

The deploy is already there (running on the trunk branch only), we need to create the test action only I guess.