This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(github-actions): add github actions to this repo
- Loading branch information
Showing
6 changed files
with
200 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: build branch | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
name: Check branch | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Install Node 12 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
# Cache node modules | ||
- uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
# Install environment | ||
- run: npm config set spin false | ||
- run: npm install -g npm@7 | ||
- run: npm install -g codecov | ||
- run: npm --version | ||
|
||
# Install Dependencies | ||
- run: npm ci | ||
|
||
# Run tests | ||
- run: npm run lint:js | ||
- run: npm run lint:hbs | ||
- run: npm test | ||
- run: codecov --file=coverage/node/lcov.info | ||
- run: codecov --file=coverage/ember/lcov.info | ||
|
||
regression: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
name: Check ember-try for [${{matrix.scenario}}] | ||
strategy: | ||
matrix: | ||
scenario: [ember-lts-2.18, ember-lts-3.4, ember-release, ember-beta, ember-default-with-jquery] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Install Node 12 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
# Install environment | ||
- run: npm config set spin false | ||
- run: npm install -g npm@7 | ||
- run: npm --version | ||
|
||
# Install Dependencies | ||
- run: npm ci | ||
|
||
# Run ember-try | ||
- run: node_modules/.bin/ember try:one ${{matrix.scenario}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: release artifacts | ||
|
||
on: | ||
workflow_run: | ||
branches: | ||
- master | ||
workflows: ["build branch"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
name: Check branch | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Install Node 12 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
# Cache node modules | ||
- uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
# Install environment | ||
- run: npm config set spin false | ||
- run: npm install -g npm@7 | ||
- run: npm --version | ||
|
||
# Install Dependencies | ||
- run: npm ci | ||
|
||
# Run semantic relase | ||
- run: npx semantic-release | ||
|
||
# Build the project | ||
- run: npm run build -- -prod | ||
|
||
# Deploy to GitHub Pages | ||
# Using https://github.com/marketplace/actions/deploy-to-github-pages | ||
- uses: JamesIves/[email protected] | ||
with: | ||
folder: dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: build branch | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 0' # weekly | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
name: Check branch | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Install Node 12 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
# Cache node modules | ||
- uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
# Install environment | ||
- run: npm config set spin false | ||
- run: npm install -g npm@7 | ||
- run: npm install -g codecov | ||
- run: npm --version | ||
|
||
# Install Dependencies | ||
- run: npm ci | ||
|
||
# Run tests | ||
- run: npm run lint:js | ||
- run: npm run lint:hbs | ||
- run: npm test | ||
- run: codecov --file=coverage/node/lcov.info | ||
- run: codecov --file=coverage/ember/lcov.info | ||
|
||
regression: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
name: Check ember-try for [${{matrix.scenario}}] | ||
strategy: | ||
matrix: | ||
scenario: [ember-lts-2.18, ember-lts-3.4, ember-release, ember-beta, ember-default-with-jquery] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Install Node 12 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
|
||
# Install environment | ||
- run: npm config set spin false | ||
- run: npm install -g npm@7 | ||
- run: npm --version | ||
|
||
# Install Dependencies | ||
- run: npm ci | ||
|
||
# Run ember-try | ||
- run: node_modules/.bin/ember try:one ${{matrix.scenario}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters