Skip to content

Revert "Add files via upload" #7

Revert "Add files via upload"

Revert "Add files via upload" #7

Workflow file for this run

name: CI Tests
on:
workflow_dispatch:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
build:
if: github.repository == 'Nodeguardians/ng-questplay'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.3.1"
- name: Install Nargo
uses: noir-lang/noirup@v0.1.2
with:
toolchain: 0.19.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Configure git
run: |
git checkout -b new-branch
git config user.name "someone"
git config user.email "someone@nodeguardians.io"
- name: Install dependencies
run: |
npm run start-adventure
git commit -a -m "Install dependencies"
- name: Create .env file
run: |
touch .env
echo GITHUB_TOKEN="${{ secrets.PUBLIC_TOKEN }}" >> .env
- run: npm run test