generated from nihat99/ng-questplay
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (50 loc) · 1.41 KB
/
ci-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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