| on: [push, pull_request] | ||
| name: Build, Test and maybe Publish | ||
| jobs: | ||
| test: | ||
| name: Build & Test | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node-version: [12.x, 14.x] | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v1 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| - name: Cache node_modules | ||
| id: cache-modules | ||
| uses: actions/cache@v1 | ||
| with: | ||
| path: node_modules | ||
| key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }} | ||
| - name: Build | ||
| if: steps.cache-modules.outputs.cache-hit != 'true' | ||
| run: npm install | ||
| - name: Test | ||
| run: npm test | ||
| publish: | ||
| name: Publish | ||
| needs: test | ||
| runs-on: ubuntu-latest | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Cache node_modules | ||
| id: cache-modules | ||
| uses: actions/cache@v1 | ||
| with: | ||
| path: node_modules | ||
| key: 12.x-${{ runner.OS }}-build-${{ hashFiles('package.json') }} | ||
| - name: Build | ||
| if: steps.cache-modules.outputs.cache-hit != 'true' | ||
| run: npm install | ||
| - name: Test | ||
| run: npm test | ||
| - name: Publish | ||
| uses: mikeal/merge-release@master | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
| <?xml version="1.0"?> | ||
| <testsuite name="HeadlessChrome 83.0.4103 (Linux 0.0.0)" package="" timestamp="2020-06-16T20:51:15" id="0" hostname="fv-az88" tests="2" errors="0" failures="0" time="0.026"> | ||
| <properties> | ||
| <property name="browser.fullName" value="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/83.0.4103.97 Safari/537.36"/> | ||
| </properties> | ||
| <testcase name=" all sha hashes" time="0.025" classname=""/> | ||
| <testcase name=" test bad algorith" time="0.001" classname=""/> | ||
| <system-out> | ||
| <![CDATA[ | ||
| ]]> | ||
| </system-out> | ||
| <system-err/> | ||
| </testsuite> |
+1
-1
| { | ||
| "name": "digestif", | ||
| "version": "0.1.6", | ||
| "version": "0.1.7", | ||
| "main": "nodejs.js", | ||
@@ -5,0 +5,0 @@ "browser": "browser.js", |
+1
-1
| # digestif | ||
|   | ||
|   | ||
@@ -5,0 +5,0 @@ Cross-platform SHA2 hash digests. |
| on: push | ||
| name: Build and Publish | ||
| jobs: | ||
| build: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@master | ||
| - name: Build | ||
| uses: actions/npm@master | ||
| with: | ||
| args: install | ||
| - name: Test | ||
| uses: ianwalter/puppeteer@master | ||
| with: | ||
| entrypoint: npm | ||
| args: test | ||
| - name: Publish | ||
| uses: mikeal/merge-release@master | ||
| if: github.ref == 'refs/heads/master' | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
| - uses: mikeal/bundle-size-action@master | ||
| if: github.ref == 'refs/heads/master' | ||
| - uses: mikeal/publish-to-github-action@master | ||
| if: github.ref == 'refs/heads/master' | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
5038
32.2%7
16.67%