2021-09-22 00:16:07 +08:00
|
|
|
name: (experimental) Ember CLI tests (plugins)
|
2021-09-21 22:44:12 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: run
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-15 02:30:25 +08:00
|
|
|
container: discourse/discourse_test:slim-browsers
|
2021-09-21 22:44:12 +08:00
|
|
|
timeout-minutes: 60
|
|
|
|
|
|
|
|
steps:
|
2022-04-28 21:51:48 +08:00
|
|
|
- uses: actions/checkout@v3
|
2021-09-21 22:44:12 +08:00
|
|
|
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 18:51:42 +08:00
|
|
|
uses: actions/cache@v3
|
2021-09-21 22:44:12 +08: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-22 00:16:07 +08:00
|
|
|
- name: QUnit
|
2021-09-21 22:44:12 +08:00
|
|
|
working-directory: ./app/assets/javascripts/discourse
|
2021-09-22 00:16:07 +08:00
|
|
|
run: QUNIT_EMBER_CLI=1 sudo -E -u discourse -H rake plugin:qunit
|
2021-09-21 22:44:12 +08:00
|
|
|
timeout-minutes: 60
|