Skip to content

L3aalteshuva patch 2 #41

L3aalteshuva patch 2

L3aalteshuva patch 2 #41

Workflow file for this run

name: Setup Go environment
uses: actions/[email protected]

Check failure on line 2 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
with:
# The Go version to download (if necessary) and use. Supports semver spec and ranges. Be sure to enclose this option in single quotation marks.
go-version: # optional
# Path to the go.mod or go.work file.
go-version-file: # optional
# Set this option to true if you want the action to always check for the latest available version that satisfies the version spec
check-latest: # optional
# Used to pull Go distributions from go-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
token: # optional, default is ${{ github.server_url == 'https://github.com' && github.token || '' }}
# Used to specify whether caching is needed. Set to true, if you'd like to enable caching.
cache: # optional, default is true
# Used to specify the path to a dependency file - go.sum
cache-dependency-path: # optional
# Target architecture for Go to use. Examples: x86, x64. Will use system architecture by default.
architecture: # optional
name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
environment:
name: nightwatch-browserstack-build
strategy:
matrix:
node-version: [14.x, 15.x, 16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: create env file
run: |
touch .env
echo BROWSERSTACK_USER =${{ secrets.BROWSERSTACK_USER }} >> .env
echo BROWSERSTACK_KEY =${{ secrets.BROWSERSTACK_KEY }} >> .env
- name: install typescript globally
run: |
npm install -g typescript
- name: npm install
run: |
npm install
- run: npm run test-browserstack