mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-10 22:58:08 -05:00
CI github workflow added
This commit is contained in:
29
.github/workflows/ci.yml
vendored
Normal file
29
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Continuous Integration
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
working-directory: '.'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14.16.1'
|
||||
- name: Install hardhat
|
||||
run: npm install --save-dev hardhat
|
||||
working-directory: ${{env.working-directory}}
|
||||
- name: Install packages
|
||||
run: npm install
|
||||
working-directory: ${{env.working-directory}}
|
||||
- name: Compile code
|
||||
run: npx hardhat compile
|
||||
working-directory: ${{env.working-directory}}
|
||||
- name: Run tests
|
||||
run: npx hardhat test
|
||||
working-directory: ${{env.working-directory}}
|
||||
Reference in New Issue
Block a user