2021-09-21 12:16:07 -04:00
|
|
|
name: (experimental) Ember CLI tests (core)
|
2021-03-24 09:41:37 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
2021-11-25 15:44:40 -05:00
|
|
|
concurrency:
|
2021-11-25 17:31:05 -05:00
|
|
|
group: ember-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
|
2021-11-25 15:44:40 -05:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-03-24 09:41:37 -04:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: run
|
|
|
|
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
|
|
|
|
2021-09-13 13:59:56 -04:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
browser: ["Chrome", "Firefox", "Headless Firefox"]
|
|
|
|
|
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-
|
|
|
|
|
|
|
|
- name: Yarn install
|
|
|
|
working-directory: ./app/assets/javascripts/discourse
|
|
|
|
run: yarn install
|
|
|
|
|
2021-11-11 16:49:24 -05:00
|
|
|
- name: Ember Build
|
2021-03-24 09:41:37 -04:00
|
|
|
working-directory: ./app/assets/javascripts/discourse
|
2021-11-11 16:49:24 -05:00
|
|
|
run: |
|
|
|
|
sudo -E -u discourse mkdir /tmp/emberbuild
|
|
|
|
sudo -E -u discourse -H yarn ember build --environment=test -o /tmp/emberbuild
|
|
|
|
|
|
|
|
- name: Core QUnit 1
|
|
|
|
working-directory: ./app/assets/javascripts/discourse
|
|
|
|
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=1 --launch "${{ matrix.browser }}"
|
|
|
|
timeout-minutes: 60
|
|
|
|
|
|
|
|
- name: Core QUnit 2
|
|
|
|
working-directory: ./app/assets/javascripts/discourse
|
|
|
|
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=2 --launch "${{ matrix.browser }}"
|
|
|
|
timeout-minutes: 60
|
|
|
|
|
|
|
|
- name: Core QUnit 3
|
|
|
|
working-directory: ./app/assets/javascripts/discourse
|
|
|
|
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=3 --launch "${{ matrix.browser }}"
|
2021-09-09 15:32:56 -04:00
|
|
|
timeout-minutes: 60
|