replace environment name by environment type #181
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
# The name of this GH action | |
name: CI | |
# Defines when this action should be run | |
on: | |
# Run on any Push | |
push: {} | |
# Run for PRs on main and staging | |
pull_request: | |
branches: [ main, staging ] | |
jobs: | |
# Test the compiler code | |
test: | |
# We run this on the latest ubuntu | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
# We use node 14.X | |
strategy: | |
matrix: | |
node-version: [18.x] | |
# The following steps are performed for each lint job | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Test the compiler | |
run: | | |
yarn install | |
yarn test |