Skip to content

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

`env` is not a valid event name
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
env:
PK_1: ${{ vars.PK_1 }}
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Run CI script
run: npm run ci
- name: Use variables
run: |
echo "pk1 : $PK_1"
- name: Run tests
run: npm run test
env:
PK_1: ${{ vars.PK_1 }}