mirror of
https://github.com/scratchfoundation/scratch-analysis.git
synced 2025-08-28 22:09:00 -04:00
Merge pull request #65 from scratchfoundation/rd/ENG-50/transition-scratch-analysis
Rd/eng 50/transition scratch analysis
This commit is contained in:
commit
0f4220d101
7 changed files with 28869 additions and 74 deletions
|
@ -1,73 +0,0 @@
|
|||
version: "2.1"
|
||||
orbs:
|
||||
slack: circleci/slack@4.1
|
||||
eb: circleci/aws-elastic-beanstalk@2.0.1
|
||||
|
||||
executors:
|
||||
sapi-executor:
|
||||
docker:
|
||||
- image: "cimg/node:16.16.0"
|
||||
resource_class: medium
|
||||
|
||||
aliases:
|
||||
- &setup
|
||||
steps:
|
||||
- checkout
|
||||
- run: sudo apt-get update
|
||||
- run:
|
||||
name: Install deps
|
||||
command: npm install
|
||||
- run:
|
||||
name: Run ci
|
||||
command: npm ci
|
||||
- run:
|
||||
name: Run tests
|
||||
command: npm test
|
||||
- &deploy
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Publish package
|
||||
command: npx semantic-release
|
||||
- slack/notify:
|
||||
channel: circleci-backend-deploys
|
||||
event: fail
|
||||
template: basic_fail_1
|
||||
- slack/notify:
|
||||
channel: circleci-backend-deploys
|
||||
event: pass
|
||||
template: success_tagged_deploy_1
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
executor: sapi-executor
|
||||
<<: *setup
|
||||
publish-package:
|
||||
executor: sapi-executor
|
||||
<<: *deploy
|
||||
|
||||
workflows:
|
||||
build-and-test-analysis:
|
||||
jobs:
|
||||
- build-and-test:
|
||||
context:
|
||||
- scratch-analysis
|
||||
- slack-notifications
|
||||
when:
|
||||
not:
|
||||
equal: [ tsm/circleci-updates, <<pipeline.git.branch>> ]
|
||||
|
||||
build-and-publish-package:
|
||||
when:
|
||||
equal: [ tsm/circleci-updates, << pipeline.git.branch >> ]
|
||||
jobs:
|
||||
- build-and-test:
|
||||
context:
|
||||
- scratch-analysis
|
||||
- slack-notifications
|
||||
- publish-package:
|
||||
context:
|
||||
- scratch-analysis
|
||||
- slack-notifications
|
||||
requires:
|
||||
- build-and-test
|
1
.github/CODEOWNERS.md
vendored
Normal file
1
.github/CODEOWNERS.md
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
@scratchfoundation/scratch-engineering
|
25
.github/workflows/build.yml
vendored
Normal file
25
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: build-scratch-analysis
|
||||
on:
|
||||
push:
|
||||
jobs:
|
||||
setup:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
- name: Run Tests
|
||||
run: npm test
|
||||
- name: Semantic Release
|
||||
if: github.ref_name == 'master'
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: npx --no -- semantic-release
|
||||
|
||||
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,7 +4,6 @@
|
|||
## NPM
|
||||
/node_modules
|
||||
npm-*
|
||||
package-lock.json
|
||||
|
||||
## Code Coverage
|
||||
.nyc_output/
|
||||
|
|
1
.nvmrc
Normal file
1
.nvmrc
Normal file
|
@ -0,0 +1 @@
|
|||
v18
|
28841
package-lock.json
generated
Normal file
28841
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -21,6 +21,7 @@
|
|||
"@babel/eslint-parser": "^7.5.4",
|
||||
"eslint": "^8.16.0",
|
||||
"eslint-config-scratch": "^7.0.0",
|
||||
"scratch-semantic-release-config": "1.0.8",
|
||||
"tap": "^16.2.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue