2021-03-24 09:41:37 -04:00
|
|
|
name: Ember CLI tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2021-09-07 13:17:04 -04:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
2021-03-24 09:41:37 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: run
|
2021-09-02 13:27:31 -04:00
|
|
|
if: true
|
2021-03-24 09:41:37 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: discourse/discourse_test:release
|
2021-09-09 15:32:56 -04:00
|
|
|
timeout-minutes: 60
|
2021-03-24 09:41:37 -04:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
|
|
|
|
- name: Setup Git
|
|
|
|
run: |
|
|
|
|
git config --global user.email "ci@ci.invalid"
|
|
|
|
git config --global user.name "Discourse CI"
|
|
|
|
|
|
|
|
- name: Get yarn cache directory
|
|
|
|
id: yarn-cache-dir
|
|
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
|
|
|
|
|
|
- name: Yarn cache
|
|
|
|
uses: actions/cache@v2
|
|
|
|
id: yarn-cache
|
|
|
|
with:
|
|
|
|
path: ${{ steps.yarn-cache-dir.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
|
2021-09-07 13:17:04 -04:00
|
|
|
- name: Official Plugins Install
|
2021-09-10 14:29:38 -04:00
|
|
|
if: ${{ github.event_name == 'schedule' }}
|
2021-09-07 13:17:04 -04:00
|
|
|
run: sudo -E -u discourse -H bundle exec rake plugin:install_all_official
|
|
|
|
|
2021-03-24 09:41:37 -04:00
|
|
|
- name: Yarn install
|
|
|
|
working-directory: ./app/assets/javascripts/discourse
|
|
|
|
run: yarn install
|
|
|
|
|
|
|
|
- name: Core QUnit
|
|
|
|
working-directory: ./app/assets/javascripts/discourse
|
2021-09-03 14:17:11 -04:00
|
|
|
run: sudo -E -u discourse -H yarn ember test
|
2021-09-09 15:32:56 -04:00
|
|
|
timeout-minutes: 60
|