Skip to content

add release plan

add release plan #5698

Workflow file for this run

name: Build and Publish
on:
pull_request: {}
push:
branches:
- main
- stable
- ember-2.7.0-3.4.0
- ember-0.0.0-2.7.0
tags:
- v*
schedule:
- cron: '0 0 * * *'
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
CI: 'true'
steps:
- name: Checkout
uses: actions/checkout@v3
# Code Climate expects these variables to be set
- name: Set up commit metadata
if: github.event_name == 'push'
env:
GIT_COMMIT_SHA: ${{ github.sha }}
GIT_BRANCH: ${{ github.ref }}
run: |
echo "GIT_COMMIT_SHA=${GIT_COMMIT_SHA}" >> $GITHUB_ENV
echo "GIT_BRANCH=${GIT_BRANCH/refs\/heads\//}" >> $GITHUB_ENV
- name: Set up commit metadata
if: github.event_name == 'pull_request'
env:
GIT_COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
GIT_BRANCH: ${{ github.event.pull_request.head.ref }}
run: |
echo "GIT_COMMIT_SHA=${GIT_COMMIT_SHA}" >> $GITHUB_ENV
echo "GIT_BRANCH=${GIT_BRANCH}" >> $GITHUB_ENV
- name: setup pnpm & node
uses: wyvox/action-setup-pnpm@v3
- name: Install dependencies (pnpm)
run: pnpm install
- name: Lint (hbs)
run: pnpm lint:hbs
- name: Lint (js)
run: pnpm lint:js
- name: Run test
run: pnpm test
env:
COVERAGE: 'true'
# Ideally, we would split up the test task into separate build and run
# steps to get better CI log output (folding and timing information).
# However, this is not currently possible with ember-cli-code-coverage.
#
# See https://github.com/kategengler/ember-cli-code-coverage/issues/210
#
# - name: Build
# run: pnpm ember build --environment test
# env:
# COVERAGE: 'true'
# - name: Run test
# run: COVERAGE pnpm ember test --path dist
# env:
# # Due to a bug in ember-cli, running `ember test` with `--path` doesn't set `EMBER_ENV=test`
# # See https://github.com/ember-cli/ember-cli/issues/8922
# EMBER_ENV: test
# COVERAGE: 'true'
- name: Report coverage
if: github.event_name != 'schedule'
run: pnpm codeclimate-test-reporter < coverage/lcov.info
env:
CODECLIMATE_REPO_TOKEN: 59edcfd1ffc778791af49ca594b503e7179f6bbe1991b2cc0c0a6987d103253d
ember-try:
name: ember-try (${{ matrix.scenario }})
needs: test
runs-on: ubuntu-latest
env:
CI: 'true'
strategy:
fail-fast: false
matrix:
scenario:
- ember-lts-3.16
- ember-lts-3.20
- ember-lts-3.24
- ember-lts-3.28
- ember-release
- ember-beta
- ember-canary
- ember-default-no-prototype-extensions
steps:
- name: Checkout
uses: actions/checkout@v3
- name: setup pnpm & node
uses: wyvox/action-setup-pnpm@v3
- name: Install dependencies (pnpm)
run: pnpm install
- name: Set NO_EXTEND_PROTOTYPES
if: matrix.scenario == 'ember-default-no-prototype-extensions'
run: echo "NO_EXTEND_PROTOTYPES==true" >> .GITHUB_ENV
- name: Setup ember-try scenario
run: pnpm ember try:one ${{ matrix.scenario }} --skip-cleanup --- cat package.json
- name: Build
run: pnpm ember build --environment test
- name: Run test
# Due to a bug in ember-cli, running `ember test` with `--path` doesn't set `EMBER_ENV=test`
# See https://github.com/ember-cli/ember-cli/issues/8922
run: EMBER_ENV=test pnpm ember test --path dist --filter="Ember Debug"