Resolving an issue with missing parameters in test constructor #6
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
name: Truffle CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
- name: Cache node_modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Create .env file from secret | |
run: echo "${{ secrets.CI_ENV }}" > .env | |
- name: Install node modules | |
run: npm install | |
- name: Install truffle global | |
run: npm install -g truffle | |
- name: Compile contracts | |
run: truffle compile | |
- name: Run tests | |
run: truffle test --no-parallel |