Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ebellocchia committed Nov 22, 2023
1 parent 0ea1342 commit 40adf6e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow will install dependencies and build the contract

name: Build

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: |
npm i -g yarn
npm i --include=dev
- name: Build contract
run: |
yarn compile
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow will install dependencies, build and test the contract
# This workflow will install dependencies and test the contract

name: Testing
name: Test

on:
push:
Expand All @@ -21,9 +21,6 @@ jobs:
run: |
npm i -g yarn
npm i --include=dev
- name: Build contract
run: |
yarn compile
- name: Test contract
run: |
yarn test

0 comments on commit 40adf6e

Please sign in to comment.