Fixing deploy community CLI script #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Test Contracts | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
compile-contracts: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. | |
contents: write | |
steps: | |
- name: setup env | |
shell: bash | |
run: | | |
echo "GOPATH=${{ github.workspace }}/go" >> $GITHUB_ENV | |
echo "${{ github.workspace }}/go/bin" >> $GITHUB_PATH | |
- uses: actions/checkout@v3 | |
- name: Copy env file | |
run: echo "${{ secrets.ENV }}" >> .env | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install node modules | |
run: npm install | |
- name: Compile contracts | |
run: npx hardhat compile | |
- name: Test contracts | |
run: npx hardhat test |