Skip to content

ci(actions): update workflow #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ module.exports = {
es2021: true,
node: true,
},
extends: [
'airbnb-base',
],
extends: ['airbnb-base'],
parserOptions: {
ecmaVersion: 12,
},
rules: {
},
rules: {},
};
41 changes: 34 additions & 7 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,47 @@ name: nodejs

on:
push:
pull_request:
paths:
- '**/**'
- '!**/docs/**'

env:
CI: true
FORCE_COLOR: 2

jobs:
build:
runs-on: ubuntu-latest
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version: ["10", "12", "14"]
node: ['10.x', '12.x', '14.x']
os: ['ubuntu-latest']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2.3.4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.4
with:
node-version: ${{ matrix.node-version }}
- run: npm install

- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: npm install, build, and test
run: |
npm install
npm run ci
env:
CI: true
231 changes: 6 additions & 225 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,228 +1,9 @@
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

# Org-mode
.org-id-locations
*_archive

# flymake-mode
*_flymake.*

# eshell files
/eshell/history
/eshell/lastdir

# elpa packages
/elpa/

# reftex files
*.rel

# AUCTeX auto folder
/auto/

# cask packages
.cask/
dist/

# Flycheck
flycheck_*.el

# server auth directory
/server/

# projectiles files
.projectile

# directory configuration
.dir-locals.el

# network security
/network-security.data


### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Node ###
# Logs
logs
node_modules
.nyc*
nyc*
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.coverage
coverage/
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
.env*.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

*.tar.gz
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ codecov/
*.xhtml
peggy/
*.peg
.nyc*
lib/solidity-pegis.js
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cSpell.words": ["pegis", "pegjs"]
}
72 changes: 72 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
### Changelog

All notable changes to this project will be documented in this file. Dates are
displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v2.0.4](https://github.com/sambacha/solidity-pegjs-parser/compare/v2.0.3...v2.0.4)

> 30 October 2020

- fix(npm): fix pathnames, again
[`132d1b2`](https://github.com/sambacha/solidity-pegjs-parser/commit/132d1b2fa3c9951befced2c0989a42adc5402b8e)
- revert(solidity.pegjs): solidity.pegjs in rootdir
[`fc28601`](https://github.com/sambacha/solidity-pegjs-parser/commit/fc28601af20dad7611c9ebafa39c6a2356de7d84)
- Update README.md
[`4bf8cd1`](https://github.com/sambacha/solidity-pegjs-parser/commit/4bf8cd1acc273118f9657fcaa0a6e146d04a0793)

#### [v2.0.3](https://github.com/sambacha/solidity-pegjs-parser/compare/2.0.2...v2.0.3)

> 30 October 2020

- chore(npm): fix npm package details
[`4e626f3`](https://github.com/sambacha/solidity-pegjs-parser/commit/4e626f395d68e54885fc13f4a1123b2cd14f3085)
- feat(release): v2.0.2
[`36fd9d5`](https://github.com/sambacha/solidity-pegjs-parser/commit/36fd9d563cdfa5e8580eff4c3938d051b3030aa8)
- fix(git): fix git merge
[`cd6d2d2`](https://github.com/sambacha/solidity-pegjs-parser/commit/cd6d2d206f8009358e0b3f6bed7e0b443034a5cf)

#### [2.0.2](https://github.com/sambacha/solidity-pegjs-parser/compare/2.0.1...2.0.2)

> 30 October 2020

- Release 2.0.2
[`84fb0ab`](https://github.com/sambacha/solidity-pegjs-parser/commit/84fb0ab4335478aa9be1e9c88cbeaa329ec15fe7)

#### [2.0.1](https://github.com/sambacha/solidity-pegjs-parser/compare/2.0.0...2.0.1)

> 30 October 2020

- fix(npm): npm build directory
[`2dad33b`](https://github.com/sambacha/solidity-pegjs-parser/commit/2dad33b73271627adddc74d74c03b19b46c1c588)
- fix(bug): fixes issue wit deps
[`d807ba1`](https://github.com/sambacha/solidity-pegjs-parser/commit/d807ba1e7313cb7fc628130ab6abef1d474bae0a)
- test(mocah): fix mocah tests
[`4671018`](https://github.com/sambacha/solidity-pegjs-parser/commit/46710187897d4f16f5dec94d76b019124669100f)

#### [2.0.0](https://github.com/sambacha/solidity-pegjs-parser/compare/v2.0.0...2.0.0)

> 10 October 2020

### [v2.0.0](https://github.com/sambacha/solidity-pegjs-parser/compare/v1.0.1...v2.0.0)

> 18 August 2021

- feat(refactor): migrate to peggy and various improvements
[`87b594a`](https://github.com/sambacha/solidity-pegjs-parser/commit/87b594ad21e1221b5e3574ac8f69b5751a9ce4be)
- build(refactor): improve build process
[`0de7a77`](https://github.com/sambacha/solidity-pegjs-parser/commit/0de7a774bf2edd51b03a865e435b30a02feb5313)
- chore(repo): remove dead and legacy artifacts
[`012fec1`](https://github.com/sambacha/solidity-pegjs-parser/commit/012fec1b5000017a6125c38580d76a3299f597cc)

#### v1.0.1

> 31 October 2020

- feat(publish): inital github commit
[`ef9fd61`](https://github.com/sambacha/solidity-pegjs-parser/commit/ef9fd618cc1d2975f24ab6f387036d869ae76b4d)
- fix(tests): fix tests for coverage
[`bbfa7e4`](https://github.com/sambacha/solidity-pegjs-parser/commit/bbfa7e4658cb81ee66c18b0ad37ebc4df910e604)
- feat(v1.2.0): release v1.2.0
[`2e37081`](https://github.com/sambacha/solidity-pegjs-parser/commit/2e37081899cf04ff19cef05f2c58dfb117167836)
Loading