Skip to content

Commit

Permalink
Merge pull request #74 from questbeat/refactor-ci
Browse files Browse the repository at this point in the history
Refactor CI workflows
  • Loading branch information
nek023 committed May 6, 2023
2 parents 2a0b43a + afaafed commit 412d305
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci.yml → .github/workflows/ci.yaml
Expand Up @@ -8,13 +8,24 @@ on:
workflow_dispatch:

jobs:
test:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm ci
- run: npm test

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Lint
run: npm run lint

- name: Test
run: npm test
22 changes: 18 additions & 4 deletions .github/workflows/cd.yml → .github/workflows/release.yaml
@@ -1,4 +1,4 @@
name: CD
name: Release

on:
push:
Expand All @@ -10,13 +10,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm install
- run: npm run build
- run: npm run pack

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Lint
run: npm run lint

- name: Test
run: npm test

- name: Create package
run: npm run pack

- uses: softprops/action-gh-release@v1
with:
files: anchor.zip

0 comments on commit 412d305

Please sign in to comment.