Skip to content

Instantly share code, notes, and snippets.

@MaisaMilena
Created April 28, 2020 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaisaMilena/fa3fbafa66cca19cf91da5c977cb8db2 to your computer and use it in GitHub Desktop.
Save MaisaMilena/fa3fbafa66cca19cf91da5c977cb8db2 to your computer and use it in GitHub Desktop.
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
install:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install formality-core
id: install-fmc
run: npm i formality-core
- name: Run fmc
id: run-fmc
run: npm run type_check
- name: Get output
id: get-output
run: |
echo ::set-env name=fmc_output::$(npm run type_check)
- name: Print env
id: echo_env_1
run: |
echo $jobs.get_output.env
- name: Print env
id: echo_env_2
run: |
echo $env
- name : Evaluate types
uses: MaisaMilena/fmc-check-type-javascript-action@v1.1-alpha
with:
terms: ${{steps.get-output.env}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment