Skip to content

Commit

Permalink
Merge pull request #67 from scratchfoundation/rd/ENG-41/move-to-gha
Browse files Browse the repository at this point in the history
Move scratch-parser to GitHub Actions
  • Loading branch information
Ron de las Alas authored Oct 18, 2023
2 parents 7244904 + 213f4fe commit 8aa5288
Show file tree
Hide file tree
Showing 7 changed files with 18,316 additions and 107 deletions.
105 changes: 0 additions & 105 deletions .circleci/config.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/CODEOWNERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@scratchfoundation/scratch-engineering
47 changes: 47 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Scratch Parser CI-CD

on:
pull_request: # Runs whenever a pull request is created or updated
push: # Runs whenever a commit is pushed to the repository...
branches: [master] # ...on any of these branches
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

permissions:
contents: write
pages: write
issues: write
pull-requests: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wagoid/commitlint-github-action@v5
- uses: actions/setup-node@v3
with:
cache: "npm"
node-version-file: ".nvmrc"
- name: Info
run: |
cat <<EOF
Node version: $(node --version)
NPM version: $(npm --version)
GitHub ref: ${{ github.ref }}
GitHub head ref: ${{ github.head_ref }}
EOF
- name: Install NPM Dependencies
run: |
npm ci
- name: Lint
run: npm run test:lint
- name: Run All Tests
run: npm run test
- name: Semantic Release
if: github.ref == 'master'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx --no -- semantic-release
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# NPM
/node_modules
npm-*
package-lock.json

# Testing
/.nyc_output
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18
Loading

0 comments on commit 8aa5288

Please sign in to comment.