- Go to your repository on GitHub and click on the "Actions" tab.
- Click on the "New workflow" button on the left.
- Click on the "Set up a workflow yourself" button on the right.
- Copy and paste the following YAML configuration into the editor which will create the file
.github/workflows/main.yml
. Then click on the green "Start commit" button.
name: Ember
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm ci
- name: JavaScript Linting
run: npm run lint:js
- name: Template Linting
run: npm run lint:hbs
- name: npm test
run: npm test
env:
CI: true
The CI: true
line will set an environment variable called CI
for the npm test
step, which will be used if your testem.js
file contains the following line:
process.env.CI ? '--no-sandbox' : null;
The default testem.js
file has this line.