-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (50 loc) · 1.36 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI
on:
push:
tags:
- '*'
branches:
- master
jobs:
build-test-addon:
timeout-minutes: 20
name: Build & Test Addon
runs-on: ubuntu-latest
env:
NODE_ENV: development
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '10.x'
- name: Setup Volta
uses: rwjblue/setup-volta@v4
- name: Setup Ember Testing
uses: mydea/actions-ember-testing@v2
- name: Checkout Repo
uses: actions/checkout@v3
- name: Set Yarn Cache Directory
id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore Yarn Cache
id: yarn-cache
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: |
yarn install --prefer-offline
yarn autoclean --force
if: steps.cache.outputs.yarn-cache-hit != 'true'
- name: Lint JS
run: yarn lint:js
- name: Lint HBS
run: yarn lint:hbs
- name: Lint CSS
run: yarn lint:css
- name: Run tests
run: yarn test