Skip to content

Prevent GitHub workflow "tag, release and publish" to be executed automatically, which kind of "disables" it #404

Prevent GitHub workflow "tag, release and publish" to be executed automatically, which kind of "disables" it

Prevent GitHub workflow "tag, release and publish" to be executed automatically, which kind of "disables" it #404

Workflow file for this run

# GitHub Actions documentation:
# https://docs.github.com/en/actions
name: CI
on:
push:
branches:
- master
pull_request: {}
jobs:
lint-tests:
name: Lint and tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
cache: yarn
node-version: 16
# https://github.com/lirantal/lockfile-lint
- name: Lint lockfile
run: npx lockfile-lint --path yarn.lock --allowed-hosts npm yarn --validate-https
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint Addon
run: yarn lint
working-directory: ember-slugify
- name: Lint Test App
run: yarn lint
working-directory: test-app
- name: Build Addon
run: yarn build
- name: Run Tests
run: yarn test:ember
floating:
name: Floating Dependencies
needs: lint-tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
cache: yarn
node-version: 16
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build Addon
run: yarn build
- name: Run Tests
run: yarn test:ember
working-directory: test-app
try-scenarios:
name: ${{ matrix.try-scenario }}
needs: lint-tests
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
try-scenario:
- ember-lts-3.28
- ember-lts-4.4
- ember-release
# - ember-beta
# - ember-canary
- ember-classic
- embroider-safe
- embroider-optimized
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
cache: yarn
node-version: 16
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build Addon
run: yarn build
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
working-directory: test-app
concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true
# To reuse when the shared workflow will be migrated to V2 Addons structure
# name: CI
#
# on:
# push:
# branches:
# - master
# pull_request: {}
#
# concurrency:
# group: ci-${{ github.head_ref || github.ref }}
# cancel-in-progress: true
#
# jobs:
# org:
# uses: DazzlingFugu/.github/.github/workflows/js--emberjs-addons.yml@master
# with:
# node-version: 16
# package-manager: yarn
# ember-try-scenarios: "[
# 'ember-lts-3.28',
# 'ember-lts-4.4',
# 'ember-release',
# 'ember-beta',
# 'ember-canary',
# 'ember-classic',
# 'embroider-safe',
# 'embroider-optimized',
# ]"