Skip to content

Commit ebe8880

Browse files
authored
chore: add workflows for tests and release (#7)
1 parent 8204188 commit ebe8880

File tree

3 files changed

+82
-1
lines changed

3 files changed

+82
-1
lines changed

.github/workflows/release-please.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: release-please
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: navikt/github-app-token-generator@a9cd374e271b8aef573b8c16ac46c44fb89b02db
11+
id: get-token
12+
with:
13+
private-key: ${{ secrets.TOKENS_PRIVATE_KEY }}
14+
app-id: ${{ secrets.TOKENS_APP_ID }}
15+
- uses: GoogleCloudPlatform/release-please-action@v3
16+
id: release
17+
with:
18+
token: ${{ steps.get-token.outputs.token }}
19+
release-type: node
20+
package-name: "@netlify/@netlify/zip-it-and-ship-it"
21+
- uses: actions/checkout@v3
22+
if: ${{ steps.release.outputs.release_created }}
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: "*"
26+
cache: "npm"
27+
check-latest: true
28+
registry-url: "https://registry.npmjs.org"
29+
if: ${{ steps.release.outputs.release_created }}
30+
- run: wasm-pack build --target nodejs --release
31+
if: ${{ steps.release.outputs.release_created }}
32+
- run: wasm-pack publish
33+
if: ${{ steps.release.outputs.release_created }}
34+
env:
35+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/workflow.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, macOS-latest, windows-latest]
14+
node-version: [14.15.0, "*"]
15+
exclude:
16+
- os: macOS-latest
17+
node-version: 14.15.0
18+
- os: windows-latest
19+
node-version: 14.15.0
20+
fail-fast: false
21+
steps:
22+
- name: Git checkout
23+
uses: actions/checkout@v3
24+
# - name: Node.js ${{ matrix.node }}
25+
# uses: actions/setup-node@v3
26+
# with:
27+
# node-version: ${{ matrix.node-version }}
28+
# cache: "npm"
29+
# check-latest: true
30+
- name: Setup rust
31+
uses: actions-rs/toolchain@v1
32+
with:
33+
toolchain: stable
34+
override: true
35+
components: rustfmt, clippy
36+
#- name: Install Node.js dependencies
37+
# run: npm ci
38+
- name: Run cargo check
39+
uses: actions-rs/cargo@v1
40+
with:
41+
command: check
42+
- name: Rust tests
43+
uses: actions-rs/cargo@v1
44+
with:
45+
command: test
46+
#- name: Node.js tests
47+
# run: npm run test:ci

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version = "0.1.1"
44
authors = ["David Calavera <david.calavera@gmail.com>"]
55
edition = "2018"
66
repository = "https://github.com/netlify/elf-cam"
7-
private = true
87
license = "Apache 2"
98
description = "elf-cam is a WebAssembly(WASM) module to extract very specific information from binary files built for Linux, also known as ELF files."
109

0 commit comments

Comments
 (0)