2021-09-21 12:16:07 -04:00
|
|
|
name: (experimental) Ember CLI tests (plugins)
|
2021-09-21 10:44:12 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: run
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-14 13:30:25 -05:00
|
|
|
container: discourse/discourse_test:slim-browsers
|
2021-09-21 10:44:12 -04:00
|
|
|
timeout-minutes: 60
|
|
|
|
|
|
|
|
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
|
2022-03-31 06:51:42 -04:00
|
|
|
uses: actions/cache@v3
|
2021-09-21 10:44:12 -04:00
|
|
|
id: yarn-cache
|
|
|
|
with:
|
|
|
|
path: ${{ steps.yarn-cache-dir.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
|
|
|
|
- name: Official Plugins Install
|
|
|
|
run: |
|
|
|
|
bundle config --local path vendor/bundle
|
|
|
|
bundle config --local deployment true
|
|
|
|
bundle config --local without development
|
|
|
|
bundle install --jobs 4
|
|
|
|
bundle clean
|
|
|
|
bundle exec rake plugin:install_all_official
|
|
|
|
|
2021-09-21 12:16:07 -04:00
|
|
|
- name: QUnit
|
2021-09-21 10:44:12 -04:00
|
|
|
working-directory: ./app/assets/javascripts/discourse
|
2021-09-21 12:16:07 -04:00
|
|
|
run: QUNIT_EMBER_CLI=1 sudo -E -u discourse -H rake plugin:qunit
|
2021-09-21 10:44:12 -04:00
|
|
|
timeout-minutes: 60
|