This repository was 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
chore(github-actions): add github actions to this repo #42
Open
svsalvador
wants to merge
1
commit into
master
Choose a base branch
from
actions-test
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we dump this matrix into another yaml and reuse it in all workflows? |
||
| 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 hidden or 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,54 @@ | ||
| 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/github-pages-deploy-action@4.0.0 | ||
| with: | ||
| folder: dist |
This file contains hidden or 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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can use this action here: |
||
| - 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer block run step:
With this, we can also remove comments for
namefield.